Cuban primes: Difference between revisions

m
→‎{{header|Raku}}: note use of 'ntheory' module
m (→‎{{header|Raku}}: note use of 'ntheory' module)
Line 2,304:
=={{header|Raku}}==
(formerly Perl 6)
{{libheader|ntheory}}
{{works with|Rakudo|2018.12}}
 
===The task (k == 1)===
Not the most efficient, but concise, and good enough for this task. Use the ntheory library for prime testing; gets it down to around 20 seconds.
2,392

edits