numof 1 bits in 0 to 255 by eban

for i in {0..255}
{
for((n=0;i;i&=i-1,n++))
{
:
}
printf $n
}

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

download

return to the top page