numof 1 bits in 0 to 255 by 51b

template f(int n){static if(n>8)const f=f!(n-9)~f!(n-8);else const f="012345678"[n..n+1];}pragma(msg,f!(72));

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

download

return to the top page