Goldbach partition by leonid

3.upto(150){|i|c=2..i;puts"#{i+=i}:#{c.map{|x|j=i-x;" #{x}+#{j}"if !c.any?{|y|x%y<1&&x>y||j%y<1&&j>y}}}"}

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

download

return top