FP: isPrime update
This commit is contained in:
parent
bd1271c3d3
commit
e9cf7af65d
|
@ -1,4 +1,6 @@
|
|||
def isPrime(n):
|
||||
if n == 1:
|
||||
return False
|
||||
for x in range(2, n):
|
||||
if n % x == 0:
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue