Totient by tails (inaniwa)

r;n;main(i){for(;i=scanf("%d\n",&r)+1;r-=r/n%r,vprintf())for(n=r;n%i?n/i++/i:(n/=i)%i?r-=r/i:1;);}

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

download

return to the top page