Primes

Helper functions for prime numbers.
Useful for hash table sizes.