in reply to Finding the next larger prime.
Update: You may be interested in reading the recent findings about primality testing being possible in polynomial-time: PRIMES is in P. But for a much more efficient (but probabilistic) algorithm for testing primality, search Google for the Miller-Rabin primality test. AFAIK it's the most commonly used algorithm, and it's a lot better then checking all the possible divisors. Unfortunately, it uses a fair amount of number theory ;)
blokhead
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Finding the next larger prime.
by DrHyde (Prior) on Oct 30, 2003 at 08:51 UTC | |
by BrowserUk (Patriarch) on Oct 30, 2003 at 09:52 UTC |