Erdös-Selfridge categorization of primes: Difference between revisions

Content added Content deleted
m (→‎{{header|Raku}}: remove some intermediate variables)
(→‎{{header|Wren}}: Expanded preamble.)
Line 93: Line 93:
{{libheader|Wren-math}}
{{libheader|Wren-math}}
{{libheader|Wren-fmt}}
{{libheader|Wren-fmt}}
Second part takes a while.
Second part takes a while, about 12 minutes on my machine.

If anyone's wondering why I'm not removing duplicates from the list of prime factors, the reason is that this worsens overall time (adds about 2 minutes) even if I inline the necessary code rather than call a library function.
<lang ecmascript>import "./math" for Int
<lang ecmascript>import "./math" for Int
import "./fmt" for Fmt
import "./fmt" for Fmt