#P5436. 【XR-2】缘分
【XR-2】缘分
Description
Yi Chan wants to know how strong the “fate” between him and his master is. But how can it be measured?
Yi Chan comes up with an idea. First, he and his master agree on a positive integer . Then each of them silently thinks of a positive integer not greater than .
Yi Chan believes that the larger the least common multiple of these two numbers is, the stronger the fate between him and his master is.
His master thinks this method is good, but he wants to know what the maximum possible least common multiple of the two numbers can be.
His master is not very good at math, so he asks Yi Chan. Yi Chan also finds this problem difficult, and he hopes you can tell him the answer.
Input Format
This problem contains multiple test cases.
The first line contains a positive integer , the number of test cases.
The next lines each contain a positive integer , the positive integer agreed upon by Yi Chan and his master.
Output Format
For each test case, output one positive integer per line, the answer.
1
3
6
Hint
[Sample Explanation]
Among two positive integers not greater than , the maximum least common multiple is .
[Constraints]
For of the testdata, .
For of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号