n-th prime#11499

n-th prime

2 seconds
256 megabytes
Hard

Consider a list of prime numbers: 2, 3, 5, 7, 11, 13, .... For example, the -th prime number is .

Find the -th prime number.

Input

The first line contains the number of test cases t\:(t \le 10^4).

Each test contains one positive integer n\:(n \le 5 \cdot 10^5).

Output

For each test case print the -th prime number on a separate line.

Examples

Example 1

Loading
Loading