Consider the following information:
Task
Now, you are given a number X.
Your task is to determine the smallest number Y such that Y>X and P(Y)≠P(X).
Input format
Output format
For each test case, print the smallest number Y such that Y>X and P(Y)≠P(X) in a new line.
Constraints
1≤T≤105
1≤X≤108
The number of integers that divide a number 3 is 2 (1,3) which is even, therefore P(3) = 0
The number of integers that divide a number 4 is 3 (1,2,4) which is odd, therefore P(4) = 1
As P(3)≠P(4)
Hence, the smallest number greater than 3 satisfying the provided condition is 4.