totient function by murky-satyr

i=9999
exec'i+=1;r=n=i;j=1\nwhile~-n:\n j+=1;r-=r/j*(n%j<1)\n while n%j<1:n/=j\nprint r;'*301

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

download

return to the top page