Advertisement
nq1s788

25 до корня

Feb 14th, 2024
1,007
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. from math import sqrt, floor
  2. for n in range(174457, 174506): #174457, 174506
  3.     d = []
  4.     for x in range(2, floor(sqrt(n) + 1)): #до корня включительно, не включительно ceil(sqrt(n))
  5.         if n % x == 0:
  6.             d.append(x)
  7.     if len(d) == 1:
  8.         print(d[0], n // d[0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement