Erdős–Woods numbers: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
m (→‎{{header|Wren}}: Wren-trait -> Wren-iterate)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 355:
 
I ended up translating the Python 3.8 code (the more readable version) [https://codegolf.stackexchange.com/questions/230509/find-the-erd%C5%91s-woods-origin here], 6th post down, and found the first 20 E-W numbers in around 93 seconds. Much slower than Python which has arbitrary precision numerics built-in nowadays but acceptable for Wren.
<syntaxhighlight lang="ecmascriptwren">import "./big" for BigInt
import "./fmt" for Conv, Fmt
import "./sort" for Sort
Line 475:
{{libheader|Wren-gmp}}
Takes about 15.4 seconds which is significantly faster than Wren-cli, but still nowhere near as fast as the Python version - a majestic 1.2 seconds!
<syntaxhighlight lang="ecmascriptwren">import "./gmp" for Mpz
import "./fmt" for Conv, Fmt
import "./sort" for Sort
9,476

edits