numof 1 bits in 0 to 255 by nn

for(i=j=o='0';j<8;i<1<<j++?j--:i=0)o+=-~o[i++]
print(o)

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

download

return to the top page