Carmichael 3 strong pseudoprimes: Difference between revisions
Content added Content deleted
m (→{{header|zkl}}: fix bare tag) |
Thundergnat (talk | contribs) m (Fix Perl 6 -> Raku in comments) |
||
Line 2,443: | Line 2,443: | ||
(formerly Perl 6) |
(formerly Perl 6) |
||
{{works with|Rakudo|2015.12}} |
{{works with|Rakudo|2015.12}} |
||
An almost direct translation of the pseudocode. We take the liberty of going up to 67 to show we aren't limited to 32-bit integers. ( |
An almost direct translation of the pseudocode. We take the liberty of going up to 67 to show we aren't limited to 32-bit integers. (Raku uses arbitrary precision in any case.) |
||
<lang perl6>for (2..67).grep: *.is-prime -> \Prime1 { |
<lang perl6>for (2..67).grep: *.is-prime -> \Prime1 { |
||
for 1 ^..^ Prime1 -> \h3 { |
for 1 ^..^ Prime1 -> \h3 { |