zjfz-2019-s393639/intro/Task105.py
2020-01-12 15:52:44 +01:00

8 lines
189 B
Python

def is_almost_prime(x, limit):
if x < 0:
return False
else:
for y in range(2, limit+1):
if(x % y == 0):
return False
return True