Goldbach partition by pooq

function f(n)for a=2,n/2 do if n%a<1 then return false end end return true end
p=io.write
for i=6,300,2 do
p(i,":")for j=3,i/2 do
t=f(j)and f(i-j)and
p(" ",j,"+",i-j)end
print""end

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

download

return to the top page