numof 1 bits in 0 to 255 by Erik the Outgolfer

x=[0]
exec'x+=[i+1for i in x];'*8
print`x`[1::3]

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

download

return to the top page