#!ruby -parmathn ropenssl eval'g=->n,m{t=m m.prime_division.map{|p,|t*=1-1/p} %s.to_bn.mod_exp n<1?1:g[n-1,t]+t,m} $_=0 0while$\!=$\=" #{g[$_+=1,%s]} "'%$F
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page