Factorial primes: Difference between revisions

Content added Content deleted
m (Minor edit to C++ code)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 1,749: Line 1,749:
{{libheader|Wren-math}}
{{libheader|Wren-math}}
{{libheader|Wren-fmt}}
{{libheader|Wren-fmt}}
<syntaxhighlight lang="ecmascript">import "./math" for Int
<syntaxhighlight lang="wren">import "./math" for Int
import "./fmt" for Fmt
import "./fmt" for Fmt


Line 1,785: Line 1,785:
{{libheader|Wren-gmp}}
{{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.
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="ecmascript">import "./gmp" for Mpz
<syntaxhighlight lang="wren">import "./gmp" for Mpz
import "./fmt" for Fmt
import "./fmt" for Fmt