Change the check for prime numbers