numof 1 bits in 0 to 255 by tabasa

256.times{|i|print((("%8b"%i).scan"1").size)}

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

download

return top