Twin primes by usa

x,s=0,Array.new(m=2000){|i|i};2.upto(44){|i|s[x]=$,while m>x+=i if s[x=i]};s.map{|y|(puts [x,y]*","if y-x==2;x=y)if y}

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

download

return to the top page