#abc284d. D - Happy New Year 2023
D - Happy New Year 2023
Score : points
问题描述
你已知一个正整数 。已知 可以表示为 ,其中 和 是两个不同的质数。
请找出 和 的值。
你需要解决 个测试用例。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given a positive integer . It is known that can be represented as using two different prime numbers and .
Find and .
You have test cases to solve.
Constraints
- All values in the input are integers.
- can be represented as using two different prime numbers and .
Input
The input is given from Standard Input in the following format, where represents the -th test case:
Each test case is in the following format:
Output
Print lines.
The -th line should contain and for the -th test case, separated by a space. Under the constraints of this problem, it can be proved that the pair of prime numbers and such that is unique.
Sample Input 1
3
2023
63
1059872604593911
Sample Output 1
17 7
3 7
104149 97711
For the first test case, we have . Thus, and .
update @ 2024/3/10 11:53:48