Jump to content

Factors of a Mersenne number: Difference between revisions

Line 1,432:
Frink has built-in routines for iterating through prime numbers and modular exponentiation.
<lang frink>for p = primes[]
if modPow[2, 929, p] - 1 == 0
println[p]</lang>
{{out}}
494

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.