Jump to content

Factorial primes: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
m (Minor edit to C++ code)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 1,749:
{{libheader|Wren-math}}
{{libheader|Wren-fmt}}
<syntaxhighlight lang="ecmascriptwren">import "./math" for Int
import "./fmt" for Fmt
 
Line 1,785:
{{libheader|Wren-gmp}}
This takes about 28.5 seconds to reach the 33rd factorial prime on my machine (Core i7) with the last two being noticeably slower to emerge. Likely to be very slow after that as the next factorial prime is 1477! + 1.
<syntaxhighlight lang="ecmascriptwren">import "./gmp" for Mpz
import "./fmt" for Fmt
 
9,487

edits

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