Problem: Let denote the minimum positive integer such that is not a divisor of .
Compute modulo . In other words, compute modulo .
Input Format: The first line contains a single integer (), the number of test cases. Then cases follow.
The only line of each test case contains a single integer ().
Output Format: For each test case, output a single integer , where modulo .
Note: In the fourth test case , so .
- is a divisor of but isn't, so is the minimum positive integer that isn't a divisor of . Thus, .
- and are divisors of but isn't, so is the minimum positive integer that isn't a divisor of . Thus, .
- is a divisor of but isn't, so is the minimum positive integer that isn't a divisor of . Thus, .
- and are divisors of but isn't, so is the minimum positive integer that isn't a divisor of . Thus, .
Therefore, .