numof 1 bits in 0 to 255 by G.w.

main(i,j,k){for(i=0;i<256;i++){j=8;k=0;while(j--)k=k+(i>>j&1);printf("%d",k);}}

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

download

return to the top page