#SDNU1227. A great challenge.
A great challenge.
Description
In the legend, there lived the most intelligent person named Haroro in SDNU. Haroro likes to challenge other people on the prime problem. She is an unbeaten myth. Now, turn to you. If you can find out the most close to its prime number faster than Haroro, you will receive an unexpected gift. If the screen appears , your answer should be ;If the screen appears , your answer should be ; if the itself is prime, your answer should be ;if the nearest prime number is two, then the answer is greater than its prime.
Format
Input
The first line of the input contains the single number . Each of next T lines contains one number .
Output
The output contains line, your answer should be the most close to its prime.
Samples
3
22
7
8
23
7
7