2 lines
92 B
Python
2 lines
92 B
Python
def prime(a):
|
|
return not (a < 2 or any(a % x == 0 for x in xrange(2, int(a**0.5) + 1)))
|