Jump to content

Fractran: Difference between revisions

m
m (→‎{{header|Wren}}: Minor tidy)
Line 4,620:
{{libheader|Wren-big}}
Extra credit is glacially slow. We just find the first 10 primes which takes about 85 seconds.
<syntaxhighlight lang="ecmascriptwren">import "./big" for BigInt, BigRat
 
var isPowerOfTwo = Fn.new { |bi| bi & (bi - BigInt.one) == BigInt.zero }
9,485

edits

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