Jump to content

Fractran: Difference between revisions

m
Line 2,589:
join(Iterators.take(primes, 30), ' '), "\n")
 
println("FirstWatch the first $(primes.n) primes dropping out:")
@show primes;</syntaxhighlight>
{{output}}
<pre>First 30 iterations of FRACTRAN program 'primes':
2 15 825 725 1925 2275 425 390 330 290 770 910 170 156 132 116 308 364 68 4 30 225 12375 10875 28875 25375 67375 79625 14875 13650 2550
 
FirstWatch the first 25 primes dropping out:
primes = 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97</pre>
 
=={{header|Kotlin}}==
39

edits

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