def is_prime(n):
for i in range(2,n):
if (n%i) == 0:
return False
return True
2 Likes
You are half way correct…you need to call the function in order to get the output.
You can update your code.
1 Like