numof 1 bits in 0 to 255 by murky-satyr

o='0'for i=0,7 do
for j=1,2^i do o=o..1+o:sub(j,j)end
end
print(o)

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

download

return to the top page