numof 1 bits in 0 to 255 by pooq

a:0;256.times{|i|a=0;8.times{a+=i>>it&1;}print(a);}

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

download

return to the top page