totient function by nn

i,n,v;main(m){for(;i=n<301;printf("%d\n",v))for(v=m=1e4+n++;i++<m;)for(v-=m%i?0:v/i;m%i<1;)m/=i;}

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

download

return to the top page