Goldbach partition by G.w.

k;p(i){for(k=2;k<i;k++)if(i%k==0)return 0;}main(i,j){for(i=6;i<302;i+=2){printf("%d:",i);for(j=2;++j<=i/2;)if(p(j)*p(i-j)==1)printf(" %d+%d",j,i-j);putchar(10);}}

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

download

return to the top page