1875. Huge number

单点时限: 3.0 sec

内存限制: 256 MB

A positive integer is said to be squarefree if it is divisible by no perfect square larger than 1. For example, the first few squarefree numbers are {1, 2, 3, 5, 6, 7, 10, 11, 13, 14, 15, 17, 19, …}.

输入格式

There are many tests.In each test there is only a number N(1<=N<=1000000000).

输出格式

Output the nth smallest squarefree number. Note this is 1-indexed, so if N = 1,you should put out 1.

样例

Input
1
13
Output
1
19
Hint:
case 1:One is the smallest squarefree number.
case 2:See the list of squarefree numbers given in the problem statement.

0 人解决,6 人已尝试。

0 份提交通过,共有 10 份提交。

9.9 EMB 奖励。

创建: 16 年,7 月前.

修改: 7 年,3 月前.

最后提交: 4 年前.

来源: N/A

题目标签