fix task 105

This commit is contained in:
Grzegorz Rogozik 2020-01-12 14:48:03 +01:00
parent a3d5b06d50
commit 9115788a7d

View File

@ -5,9 +5,9 @@
def is_almost_prime(number, limit):
if number < 0:
return False
else:
for i in range(2, limit + 1):
if number % i == 0:
return False
return True
return False
else:
for i in range(2, limit + 1):
if number % i == 0:
return False
return True