altered is_prime? method to recognize 2 as a prime number before excluding other even nums