fix task 105

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

View File

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