One-two primes: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
m (→‎{{header|Quackery}}: tweaked commentary)
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
Line 972:
===Task specific===
This is based on the Python code in the OEIS entry. Run time about 52 seconds.
<syntaxhighlight lang="ecmascriptwren">import "./gmp" for Mpz
import "./fmt" for Fmt
import "./iterate" for Stepped
Line 1,048:
 
64-bit integers are needed to find the first 20 terms so we need to use the above module here.
<syntaxhighlight lang="ecmascriptwren">import "./long" for ULong
import "./fmt" for Conv, Fmt
 
Line 1,072:
===Generalized===
Slower than Raku at about 15.2 seconds though acceptable given that Wren is having to do a lot of string manipulation here.
<syntaxhighlight lang="ecmascriptwren">import "./gmp" for Mpz
import "./fmt" for Fmt
import "./iterate" for Stepped
9,488

edits