Anonymous user
Talk:Lucas-Lehmer test: Difference between revisions
→Math in introduction: deleted (done, no need to discuss)
(→Math in introduction: note about viewer-dependency) |
(→Math in introduction: deleted (done, no need to discuss)) |
||
Line 327:
The Java version is still limited by types. Integer.parseInt(args[0]) limits p to 2147483647. Also the fact that isMersennePrime takes an int limits it there too. For full arbitrary precision every int needs to be a BigInteger or BigDecimal and a square root method will need to be created for them. The limitation is OK I think (I don't think we'll be getting up to 2<sup>2147483647</sup> - 1 anytime soon), but the claim "any arbitrary prime" is false because of the use of ints. --[[User:Mwn3d|Mwn3d]] 07:45, 21 February 2008 (MST)
|