totient function by *yuko*

for i=1e4to 103e2k=i:n=i:for j=2to i
n=n-n/j*!mod(k,j)
1if!mod(k,j)k=k/j:goto 1
next:?n next

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

download

return top