Advertisement
nq1s788

25 делители до корня

Dec 25th, 2024
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. #https://inf-ege.sdamgia.ru/test?theme=414
  2. for x in range(174457, 174506):
  3.     a = []
  4.     for k in range(2, int(x ** 0.5) + 1):
  5.         if x % k != 0:
  6.             continue
  7.         if k * k == x:
  8.             a.append(k)
  9.         else:
  10.             a.append(k)
  11.             a.append(x // k)
  12.     if len(a) == 2:
  13.         print(*sorted(a))
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement