checking for a prime