Tetration Mod by mitchs (alt)

#!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).

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page