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