Distinct Primes
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Lucky Numbers are those positive integers that have at least three distinct prime factors. For example and are the first two. You are given a positive integer , and was asked to find the -th lucky number.
Input
The first line contains the number of test cases . Each of the next lines contains one integer .
Output
Print lines, each containing the corresponding lucky number for that test case.
Examples
Input #1
Answer #1
Submissions 868
Acceptance rate 34%