Hamming numbers: Difference between revisions

m
m (→‎{{header|Wren}}: Minor tidy)
Line 12,742:
===Simple but slow===
{{libheader|Wren-big}}
<syntaxhighlight lang="ecmascriptwren">import "./big" for BigInt, BigInts
 
var primes = [2, 3, 5].map { |p| BigInt.new(p) }.toList
Line 12,795:
Not as fast as the statically typed languages but fast enough for me :)
 
<syntaxhighlight lang="ecmascriptwren">import "./dynamic" for Struct
import "./long" for ULong
import "./big" for BigInt
9,485

edits