Lucas-Lehmer test: Difference between revisions
Content added Content deleted
(→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)") |
Langurmonkey (talk | contribs) m (→{{header|langur}}: change where() to filter()) |
||
Line 2,067: | Line 2,067: | ||
=={{header|langur}}== |
=={{header|langur}}== |
||
{{trans|D}} |
{{trans|D}} |
||
{{works with|langur|0. |
{{works with|langur|0.11}} |
||
With slight syntactic differences, this would also work with earlier versions of langur if you limit it to smaller numbers. 0.8 uses arbitrary precision. |
With slight syntactic differences, this would also work with earlier versions of langur if you limit it to smaller numbers. 0.8 uses arbitrary precision. |
||
Line 2,083: | Line 2,083: | ||
} |
} |
||
writeln join " ", map f $"M\.x;", |
writeln join " ", map f $"M\.x;", filter .isMersennePrime, series 2300</syntaxhighlight> |
||
=={{header|Mathematica}}/{{header|Wolfram Language}}== |
=={{header|Mathematica}}/{{header|Wolfram Language}}== |