Lucas-Lehmer test: Difference between revisions
Content deleted Content added
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 extremely high.
<syntaxhighlight lang="langur">
val isPrime = fn(i) {
not any(fn
}
val
if
if not
val
for[
} == 0
}
writeln join
</syntaxhighlight>
|