Now we define a function F(x), which means the factors of x. In particular, F(1) = 1,since 1 only has 1 factor 1, F(9) = 3, since 9 has 3 factors 1, 3, 9. Now give you an integer k, please find out the minimum number x that makes F(x) = k.
输入解释
The first line contains an integer t means the number of test cases. The follows t lines, each line contains an integer k. (0 < k <= 100).
输出解释
For each case, output the minimum number x in one line. If x is larger than 1000, just output -1.