Micro and Optimus Prime

0

0 votes
Mathematics, Easy, Mathematics, Mathamatics
Problem

Micro has discovered new type of numbers, he is calling them Optimus Primes. He defined a function,f(x)=sum  of powers of prime factors in xs prime factorization A number x is Optimus Prime if f(x) is exactly 1 less than its total number of divisors. Now, Micro is interested in finding out the smallest Optimus Prime having f(x)=N. Help Micro with this task.

Input:
First line consists of a single integer T denoting the number of test cases.
Each of the following T lines consists of a single integer denoting N.

Output:
Print the required answer for each test case in a new line. Since answer can be large print it modulo 109+7.

Constraints:
1T105
1N1018

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?