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