Twin primes by eban

t=[*0..m=2e3]
2.upto(44){|i|t[i]&&(i*i).step(m,i){|j|t[j]=$9}}
t.compact.map{|i|puts [m,i]*','if i-2==m;m=i}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page