Erdös-Selfridge categorization of primes: Difference between revisions
Erdös-Selfridge categorization of primes (view source)
Revision as of 08:12, 14 April 2022
, 2 years ago→{{header|Wren}}: Expanded preamble.
Thundergnat (talk | contribs) m (→{{header|Raku}}: remove some intermediate variables) |
(→{{header|Wren}}: Expanded preamble.) |
||
Line 93:
{{libheader|Wren-math}}
{{libheader|Wren-fmt}}
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
import "./fmt" for Fmt
|