Checks if the number entered is a prime number