numof 1 bits in 0 to 255 by JoKing

print`[int(bin(x)[2:])%9for x in range(256)]`[1::3]

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

download

return to the top page