Twin primes by rickrickrick

p=3 for i=5,2e3 do
_G[0]=1
for j=2,i/3 do
_G[i%j]=m
end
if _G[0]then
p=i,i-p>2 or print(p..","..i)end
end

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

download

return to the top page