ISPrime Lambda Python

f=lambda n:all(n%m for m in range(2,n))
print(f(17)) # True
BreadCode