totient function by *yuko*

do2 i=1e4,103e2;k=i;n=i;do1 j=2,i;n=n-k/j*j/k*n/j;do1 while(k/j*j==k);1 k=k/j;2 print'(i0)',n;end

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

download

return to the top page