Format
This commit is contained in:
parent
8d6861f742
commit
b01983bdba
@ -9,7 +9,7 @@ def isPrime(n):
|
|||||||
numberToCheck = 5
|
numberToCheck = 5
|
||||||
while numberToCheck <= limit:
|
while numberToCheck <= limit:
|
||||||
if n % numberToCheck == 0: return False
|
if n % numberToCheck == 0: return False
|
||||||
numberToCheck += 2 # Skip all even numbers
|
numberToCheck += 2 # Skip all even numbers
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user