Count of circles in a number aka 2581 by tails (no embed)

s/8/--/g
y/690/---/
s/\w//g
s/^/0/
:
/-/{s///;y/0123456789/1234567890/;s/0/X0/;b}
s/XX/2/
s/X/1/

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

download

return to the top page