Define a function called isprime that takes a number x as input._
For each number n from 2 to x - 1, test if x is evenly divisible by n.
If it is, return False.
If none of them are, then return True.
def is_prime(x): result = 0 for n in range(2, x-1): if x % n == 0: return False else: return True
Oops, try again. Your function fails on is_prime(0). It returns None when it should return False.