in reply to Simple primality testing
You might consider generating a list of primes below a given number, and keeping it on disk. Then randomly access one of those numbers. I don't know exactly how many primes are less than 10**8 or so, but it's not altogether overwhelming.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Simple primality testing
by ambrus (Abbot) on Nov 23, 2005 at 09:47 UTC | |
|
Re^2: Simple primality testing
by Anonymous Monk on Nov 23, 2005 at 16:56 UTC | |
by demerphq (Chancellor) on Nov 24, 2005 at 08:01 UTC | |
by hsmyers (Canon) on Nov 26, 2005 at 15:39 UTC |