zjfz-2019-s402281/intro/Task105.py
Grzegorz Rogozik 5b7228361e add task 105
2020-01-12 13:59:58 +01:00

14 lines
233 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