Oops, try again.
Your function fails on is_prime(0). It returns None when it should return False.
Actually, i don`t have any ideas how it should work. Explain someone, please.
Replace this line with your code. Do not remove the backticks that are above or below this line. def is_prime(x): if x > 2: return False elif x == 3 or x == 2: return True for n in range (2, x-1): if x % n == 0: return False else: return True