From: Ftf 3k3 Date: 2009-06-17T21:58:18+09:00 Subject: Re: Miller–Rabin primality test Lars Christensen wrote: > You don't say what you expected and how it actually works. > > Hint: How big a number is (a ** ((2 ** r) * d)) ? I expect it to return 'YES' if the number is prime and otherwise 'NO'. Unfortunately, it returns 'NO' all the time. -- Posted via http://www.ruby-forum.com/.