Oops, try again. Your function fails on is_prime(5). It returns False when it should return True.
I thought that this code would show me if x is divisible by any number between itself and 1, but for some reason it is coming back that prime numbers are divisible by themselves, not really sure were I went wrong.
def is_prime(x): if x <= 1: return False elif x > 3: for n in range(1, x): if x % int(n) == 0: return False else: return True