#P8219. [WFOI - 02] I wanna a feasitor(化验器)
[WFOI - 02] I wanna a feasitor(化验器)
Background
What are you doing during the contest? Are you free? Can you come and start longlong?
kid looks at Elgo87 with a confused face. Elgo87 says he will tell you after you pass the level ...
Problem Description
kid found a function . It represents the largest divisor of other than itself ( is an integer greater than ).
Here are some examples:
- , because the divisors of are . Other than itself, the largest divisor is clearly , so .
- , because the divisors of are . Other than itself, the largest divisor is clearly , so .
kid also found two numbers . You need to help him find the maximum value of for every number in , as the password to pass the level.
Note that includes both and .
You only need to tell him the answer, and leave the rest to Elgo87!
Input Format
One line with two integers , as described in the statement.
Output Format
One line, indicating the maximum value of for each number in .
12 17
8
Hint
[Sample Explanation]
In , that is, the numbers , the largest factors other than the numbers themselves are , so the maximum value is .
[Constraints]
This problem uses bundled tests. That is, you must pass all test points in a to get the score for that part.
- : .
- : .
- : , .
- : .
Translated by ChatGPT 5