zjfz-2019-s402281/intro/Task105.py
2020-01-12 14:48:03 +01:00

14 lines
237 B
Python

#!/usr/bin/python2
# -*- coding: utf-8 -*-
"""Rozwiązanie zadania 105."""
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