Advertisement
ForestFox

Untitled

May 2nd, 2021
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. def f(n):
  2. k = 0
  3. if int(n**0.5)**2 == n:
  4. k += 1
  5. b = []
  6. for i in range(1, int(n**0.5)):
  7. if k > 5:
  8. return (False, 0, 0)
  9. if n%i == 0:
  10. k += 2
  11. b.append(n//i)
  12. if k == 5:
  13. b.append(int(n**0.5))
  14. return (True, max(b[1:-1]), b[-1])
  15. return (False, 0, 0)
  16. return (False, 0, 0)
  17.  
  18. for i in range(652938, 1744329):
  19. yf, a, b = f(i)
  20. if yf:
  21. print(i, a, b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement