Distribution of 0 digits in factorial series: Difference between revisions
Distribution of 0 digits in factorial series (view source)
Revision as of 11:52, 26 November 2023
, 6 months ago→{{header|Wren}}: Minor tidy
m (Added language identifier.) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 1,335:
{{libheader|Wren-fmt}}
Very slow indeed, 10.75 minutes to reach N = 10,000.
<syntaxhighlight lang="
import "./fmt" for Fmt
var fact = BigInt.one
Line 1,363:
{{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.
<syntaxhighlight lang="
var rfs = [1] // reverse factorial(1) in base 1000
|