added a prime number implementation for the next hash size

this needs testing