totient function by kaki

require'mathn';10000.upto(10300){|i|p i.prime_division.inject(i){|r,k|r-r/k[0]}}

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

download

return to the top page