Primality by trial division: Difference between revisions
→Functional
Langurmonkey (talk | contribs) |
Langurmonkey (talk | contribs) |
||
Line 3,042:
Below, we use an implied parameter (.i) on the .isPrime function.
<syntaxhighlight lang="langur">val .isPrime =
not any
writeln filter .isPrime, series 100</syntaxhighlight>
|