When i run this code it gives me an error message of Oops, try again. Your function fails on is_prime(1). It returns True when it should return False.
Shouldn't 1 be a prime number? Not sure what i can do to fix this. But would appreciate some help.
def is_prime(x): if x < 2 and x != 0: return True elif x ==0: return False else: for n in range(2,x): if x%2 == 0: return False else: return True