Talk:Cuban primes: Difference between revisions

m
adde postscript
m (→‎Python not correct: reported on fixed typo)
m (adde postscript)
Line 15:
: I've included a &nbsp; &nbsp; <big> <nowiki> {{incorrect|Python}} </nowiki> </big> &nbsp; &nbsp; statement to flag the Python entry as incorrect. &nbsp; &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 20:35, 9 June 2019 (UTC)
 
:: Looks like whomever translated it managed to put a variable name "u" in place of a "v" in the "mx = int(math.sqrt(v))" statement. Works a lot better now. Also the mx var was from 1 instead of 0, but it's unknown if that contributed to the issue.--[[User:Enter your username|Enter your username]] ([[User talk:Enter your username|talk]]) 02:16, 10 June 2019 (UTC) <br/>'''P.S.''' The translator apparently translated this from the C# version. It had a nested assignment statement that could be confusing to some. If the translator had noticed that the C# version was a translation (in turn) of the Visual Basic .NET version, (where nested assignments are not allowed), they might not have experienced this issue, as it was clearer (in the vb version) which variable was being acted upon.--[[User:Enter your username|Enter your username]] ([[User talk:Enter your username|talk]]) 02:23, 10 June 2019 (UTC)