I keep getting a syntax error for the following code and I’m having trouble understanding why. The syntax error is from the "if x % n == 0 line.

def is_prime(x):

for n in range (2, x-1):

if x % n == 0

return False

else:

return True

print is_prime(4)

print is_prime(5)