Lucas-Lehmer test: Difference between revisions
→{{header|langur}}
Langurmonkey (talk | contribs) |
Langurmonkey (talk | contribs) |
||
Line 2,283:
It is theoretically possible to test to the 47th Mersenne prime, as stated in the task description, but it could take a while. As for the limit, it would be very high.
<syntaxhighlight lang="langur">val .isPrime =
val .isMersennePrime =
if .p == 2: return true
if not .isPrime(.p): return false
Line 2,296:
}
writeln join " ", map
{{out}}
|