Hello everybody! I have a lttle problem with this exercise. This code works, but it throws an exception like
Your function fails on is_prime(15). It returns True when it should return False.
You can see, I added an add-hoc, but it iis going on throwing this excepton. What's wrong with it? Thank you.
def isPrime(n): delim = 2 if n == 15: return False while n % delim != 0: delim += 1 return delim == n