Super-d numbers: Difference between revisions
→{{header|Perl 6}}: Various style and efficiency twiddles, combined versions into the most performant variation
(→{{header|zkl}}: added code) |
Thundergnat (talk | contribs) (→{{header|Perl 6}}: Various style and efficiency twiddles, combined versions into the most performant variation) |
||
Line 183:
=={{header|Perl 6}}==
{{works with|Rakudo|2019.07.1}}
2 - 6 takes a few seconds, 7 & 8 take a few minutes; I got tired of waiting for 9.
<lang perl6>
my $run = $d x $d;
"First
}
put .&super for 2 .. 8</lang>
<pre>First 10 super-2 numbers:
Line 220 ⟶ 214:
First 10 super-8 numbers:
185423 641519 1551728 1854230 6415190 12043464 12147605 15517280 16561735 18542300</pre>
=={{header|zkl}}==
|