409238: GYM103466 A A Hard Problem

Memory Limit:512 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

A. A Hard Problemtime limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard output

Given a positive integer $$$n$$$, you need to find out the minimum integer $$$k$$$ such that for any subset $$$T$$$ of the set $$$\{1,2,\cdots,n\}$$$ of size $$$k$$$, there exist two different integers $$$u,v \in T$$$ that $$$u$$$ is a factor of $$$v$$$.

Input

The first line contains an integer $$$T~(1\le T\le 10^5)$$$ indicating the number of test cases.

Each of the following $$$T$$$ lines contains an integer $$$n~(2\le n\le 10^9)$$$ describing a test case.

Output

For each test case, output a line containing an integer which indicates the answer.

ExampleInput
4
2
3
4
5
Output
2
3
3
4

加入题单

上一题 下一题 算法标签: