Time limit: 1.5s
Memory limit: 256MB
Input:
Output:
You are given an integer . Find the smallest positive integer () such that is a divisor of .
It can be proven that, under the given constraints, a solution always exists.
Input
Each test contains multiple testcases. The first line of each testcase contains an integer () — the number of testcases.
The first line of each testcase contains one integer ().
Output
For each testcase, print the smallest integer such that is a divisor of .
Example
stdin
14
2
3
4
5
6
7
8
9
10
11
12
13
14
15
stdout
2
6
4
20
3
42
8
18
10
110
4
156
14
10