Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- limit = n ** (0.5)
- i = 2
- while n % i != 0 and i <= limit:
- i += 1
- if i <= limit:
- a = n // i
- else:
- a = 1
- b = n - a
- print(f'{a} {b}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement