determines if a number is a prime number