Goldbach partition by ksk

let rec($)x y=x=y||x/y*y<x&x$y+1
let p=Printf.printf;;for i=3to 150do
p"%d:"(i*2);for j=3to i do
j$2&i*2-j$2&p" %d+%d"j(i*2-j)=()done;p"
"done

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

download

return to the top page