From: Todd Benson Date: 2008-04-01T21:07:08+09:00 Subject: Re: Primes in P? On Tue, Apr 1, 2008 at 5:19 AM, Todd Benson wrote: > > Charles, take a peak at the mathn library for your greatest prime factor... > > require 'mathn' > n = 12345654321 > p n.prime_division.last[0] Funny, I tried this with the same number with a 1 attached to the end (123456543211). It took about 20 minutes, but determined it was prime (i.e. returned [123456543211, 1]) which means 123456543211 to the power of 1. Coincidence :) Todd