Problem: Given an integer .
Consider all pairs of integer arrays and of the same length such that (i.e. ) () and is the product of some (possibly one) distinct prime numbers.
For example, for the array pair , is correct, but the pair of arrays , is not, because is a product of non-distinct prime numbers.
Your task is to find the maximum value of (i.e. ) over all possible pairs of arrays and . Note that you do not need to minimize or maximize the length of the arrays.
Input Format: Each test contains multiple test cases. The first line contains an integer () — the number of test cases.
Each test case contains only one integer ().
Output Format: For each test case, print the maximum value of .
Note: In the first test case, so that , when hits the maximum value . Also, , does not work since is not made of distinct prime factors.
In the second test case, we can consider as , so , . Notice that when , .