numof 1 bits in 0 to 255 by tryeng

class b{public static void main(String[]b){for(int j,k,i=0;i<256;i++){k=0;for(j=i;j>0;j&=j-1)k++;System.out.print(k);}}}

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

download

return to the top page