Sum of the digits of n is substring of n: Difference between revisions

Content added Content deleted
(add fermat)
Line 836: Line 836:
&>;
&>;
fi;
fi;
nt:=nt\10; {peel off the last digit and go again}
nt:=nt\10;
od;
od;
od;</lang>
od;</lang>