numof 1 bits in 0 to 255 by pooq

for i=0,255 do a=0 j=i while j>0 do a=a+j%2 j=math.floor(j/2)end io.write(a)end

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

download

return to the top page