Lucas-Lehmer test: Difference between revisions

Content added Content deleted
m (→‎{{header|C}}: They snuck that one in there...)
(→‎{{header|Java}}: Answers after about an hour...it's still running on my school's CS server too)
Line 252: Line 252:
}
}
Output:
Output:
Finding Mersenne primes in M[2..500]:
Finding Mersenne primes in M[2..2147483647]:
M2 M3 M5 M7 M13 M17 M19 M31 M61 M89 M107 M127
M2 M3 M5 M7 M13 M17 M19 M31 M61 M89 M107 M127 M521 M607 M1279 M2203 M2281 M3217 M4253 M4423

=={{header|Python}}==
=={{header|Python}}==
from sys import stdout
from sys import stdout