In exercise 6. is_prime I am using this code:
def is_prime(x): if (x-1) % 2 == 0 and x != 1: return True elif x == 1: return False else: return False
it keeps showing me an error that the function does not work with 2 like when you use is_prime(2). The error says that it returns False when it should return True but that’s wrong because 1 is not a prime number.
so what’s the deal?