|
Primes
by Canadian Mind Products
calculates the prime numbers 1..N, tells you if N is prime etc. Prints tables of primes. Computes the prime just below or above N. It is useful in computing optimal HashTable sizes. Java source included.
prime eratosthenes seive number division remainder modulus
|