totient function by hallvabo

n=10000
exec"""
x=i=n;f=2
while~-x:
\x09if x%f<1:i=i*~-f/f
\x09while x%f<1:x/=f
\x09f+=1
print i;n+=1"""*301

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

download

return to the top page