fix task 105
This commit is contained in:
parent
a3d5b06d50
commit
9115788a7d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user