Count of circles in a number aka 2581 by teebee

do
c=peek(0)
if c<11?n:n=0^c
n=n+and(9/2^mod(c,9),3)loop

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

download

return to the top page