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

s/8/00/g
y/069/---/
s/\w//g
s/^/00/
:
s/.-/&0123456789-0 /
s/\(.\)-.*\1\(-*.\).* /\2/
t
s/^0//

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

download

return to the top page