From: Joseph McDonald Date: 2003-05-23T01:55:11+09:00 Subject: Re: Speed Kata: pure-Ruby powmod Is anyone working on a ruby interface to PARI/GP: http://www.math.u-psud.fr/~belabas/pari/ It's supposed to be quite fast. Here are some notes on using it for crypto type routines: http://www.math.iastate.edu/cbergman/crypto/pari/parihelp.html#powermod ? powermod(x,k,m)=lift(Mod(x,m)^k) ? powermod(1+2^1000, 65537, 2^2048) is pretty fast. I haven't benchmarked it against the ruby version though. thanks, -joe