hash and primes