1 17 289 349 5933 100861
1 2 4 25219 50438 100876
1 2 4 25229 50458 100916
1 3 9 11213 33639 100917
Объяснение:
from math import sqrt
for n in range(100812, 100923 + 1):
divs = []
for div in range(1, round(sqrt(n)) + 1):
if n % div == 0:
if div == n // div:
divs += [div]
else:
divs += [div, n // div]
if len(divs) > 6:
break
if len(divs) == 6:
print(' '.join(str(div) for div in sorted(divs)))
1 17 289 349 5933 100861
1 2 4 25219 50438 100876
1 2 4 25229 50458 100916
1 3 9 11213 33639 100917
Объяснение:
from math import sqrt
for n in range(100812, 100923 + 1):
divs = []
for div in range(1, round(sqrt(n)) + 1):
if n % div == 0:
if div == n // div:
divs += [div]
else:
divs += [div, n // div]
if len(divs) > 6:
break
if len(divs) == 6:
print(' '.join(str(div) for div in sorted(divs)))