Count of circles in a number aka 2581 by pooq

while(a:?read\-line(?-,?-,~))#~do(b:0,for c in charlist(a)do(b:b+[1,0,0,0,0,0,1,0,2,1][cint(c)-47]),dispterms(b));

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

download

return to the top page