Twin primes by kaki

3.upto(1997){|i|f=1
2.upto(i**0.6){|j|i%j>0&&(i+2)%j>0||f=0}
f>0&&puts([i,i+2]*",")}

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

download

return to the top page