parity of numbers by smk (golfed)

main(i,p,m){for(i=0;i<256;i++){p=0;for(m=128;m;m/=2)i&m?p++:0;printf("%d",p&1);}}

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

download

return to the top page