A few functions which deal with primes