Syntactic Confectionery Delight | |
PerlMonks |
Re: Simple primality testingby spiritway (Vicar) |
on Nov 23, 2005 at 05:49 UTC ( [id://511005]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Meditations
|
|