Sieve of Eratosthenes: Difference between revisions

add prime sieve in BLC
m (→‎{{header|Wren}}: Changed to Wren S/H)
imported>Tromp
(add prime sieve in BLC)
Line 2,248:
@ ^ p3\" ":<
2 234567890123456789012345678901234567890123456789012345678901234567890123456789
 
=={{header|Binary Lambda Calculus}}==
 
The BLC sieve of Eratosthenes as documented at https://github.com/tromp/AIT/blob/master/characteristic_sequences/primes.lam is the 167 bit program
 
<syntaxhighlight>00010001100110010100011010000000010110000010010001010111110111101001000110100001110011010000000000101101110011100111111101111000000001111100110111000000101100000110110</syntaxhighlight>
 
The infinitely long output is
 
<syntaxhighlight>001101010001010001010001000001010000010001010001000001000001010000010001010000010001000001000000010001010001010001000000000000010001000001010000000001010000010000010001000001000001010000000001010001010000000000010000000000010001010001000001010000000001000001000001000001010000010001010000000001000000000000010001010001000000000000010000010000000001010001000001000...</syntaxhighlight>
 
=={{header|BQN}}==
Anonymous user