Jump to content

Distribution of 0 digits in factorial series: Difference between revisions

m
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="ecmascriptwren">import "./big" for BigInt
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="ecmascriptwren">import "./fmt" for Fmt
 
var rfs = [1] // reverse factorial(1) in base 1000
9,485

edits

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