Bignum error in my PRP test

I am a total newb. Please be gentle with me. The attached program should
give “true” to both the appended test numbers and it does not with
ruby–2.2.1. (It takes a minute or two to run.) I get:

$ ruby ~/coding/ruby/frobenius_underwood.rb
Input candidate number (or ‘f’ for reads from file, anything else to
min a is 3
min a is 0

Paul :slight_smile:

I said I was a newb… 1.9.3 gave me an error. 2.2.1 is fine. Sorry
about the false alarm. Now I can concentrate on coding a Class :wink: