Chris Caldwell's web page on Mersenne numbers descirbes the Lucas-Lehmer 
test briefly and mentions that it is quick on binary computers because 
they can quickly perform division by 2^n-1. I know how to find integer 
quotients and remainders modulo 2^n with shifting and masking, but I 
don't understand how it is done quickly modulo 2^n-1. Would anyone care 
to explain?

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

Reply via email to