Modular Exponentiation 2 by fox

main@m=getLine>>=print.f.map read.words>>m;f[a,b,c]|b<1=1|0<1=a^mod b 2*f[a,div b 2,c]^2`mod`c

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

download

return to the top page