This commit is contained in:
Oystein Kristoffer Tveit 2020-09-15 11:20:34 +02:00
parent 8d6861f742
commit b01983bdba

View File

@ -9,7 +9,7 @@ def isPrime(n):
numberToCheck = 5
while numberToCheck <= limit:
if n % numberToCheck == 0: return False
numberToCheck += 2 # Skip all even numbers
numberToCheck += 2 # Skip all even numbers
return True