Distribution of 0 digits in factorial series: Difference between revisions
Content added Content deleted
m (Added language identifier.) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 1,335: | Line 1,335: | ||
{{libheader|Wren-fmt}} |
{{libheader|Wren-fmt}} |
||
Very slow indeed, 10.75 minutes to reach N = 10,000. |
Very slow indeed, 10.75 minutes to reach N = 10,000. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">import "./big" for BigInt |
||
import "/fmt" for Fmt |
import "./fmt" for Fmt |
||
var fact = BigInt.one |
var fact = BigInt.one |
||
Line 1,363: | Line 1,363: | ||
{{trans|Phix}} |
{{trans|Phix}} |
||
Around 60 times faster than before with 10,000 now being reached in about 10.5 seconds. Even the stretch goal is now viable and comes in at 5 minutes 41 seconds. |
Around 60 times faster than before with 10,000 now being reached in about 10.5 seconds. Even the stretch goal is now viable and comes in at 5 minutes 41 seconds. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">import "./fmt" for Fmt |
||
var rfs = [1] // reverse factorial(1) in base 1000 |
var rfs = [1] // reverse factorial(1) in base 1000 |