#P115. [KSC001A] A problem about GCD
[KSC001A] A problem about GCD
Source
This problem is adapted from Long Long OJ. All rights reserved.
Problem Description
Given a number , find a positive integer greater than such that is minimized while .
Why greater than ? Because , as everyone knows.
Input Format
There are multiple test cases.
The first line contains an integer representing the number of test cases.
Each of the next lines contains a positive integer .
Output Format
Output lines, each containing a positive integer .
Samples
3
1
5
12
2
2
5
1
114514
3
Data Range
For of the data, , .