Cuban primes: Difference between revisions
m
→{{header|Raku}}: note use of 'ntheory' module
SqrtNegInf (talk | contribs) m (→{{header|Raku}}: note use of 'ntheory' module) |
|||
Line 2,304:
=={{header|Raku}}==
(formerly Perl 6)
{{libheader|ntheory}}
===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.
|