scripts/ege/Вариант 14/25.py
2023-05-05 00:45:01 +03:00

16 lines
226 B
Python

def d(n):
r = []
for i in range(15, n - 1, 15):
if n % i == 0:
r.append(i)
return r
c = 0
for x in range(66730, 67001):
if len(d(x)) == 3:
print(x, d(x))
print(c)