Greatest prime dividing the n-th cubefree number: Difference between revisions

Content added Content deleted
(→‎{{header|Wren}}: Added second far quicker version (translation of Phix).)
m (→‎Version 2: Added a libheader.)
Line 841: Line 841:
===Version 2===
===Version 2===
{{trans|Phix}}
{{trans|Phix}}
{{libheader|Wren-iterate}}
Astonishing speed-up, now taking only 0.04 seconds to reach 10 million and 38 seconds to reach 10 billion.
Astonishing speed-up, now taking only 0.04 seconds to reach 10 million and 38 seconds to reach 10 billion.
<syntaxhighlight lang="wren">import "./math" for Int
<syntaxhighlight lang="wren">import "./math" for Int