Jump to content

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

→‎{{header|Wren}}: Expanded preamble.
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
9,486

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.