#P8883. 幻想中成为原神
幻想中成为原神
Background
Zhongli really likes math problems.
Problem Description
One of the problems is as follows: Define a Hilichurl as killable if and only if there exists a perfect square greater than that can divide its index. For example, Hilichurl is killable because it is divisible by ; Hilichurl is not killable. Please calculate how many Hilichurls with indices are killable. Since Zhongli follows the principle of “that’s about enough,” he allows your answer to have an absolute error of at most compared to the true answer.
Input Format
This problem contains multiple queries. The first line contains an integer , representing the number of queries.
Each query contains one line with a positive integer .
Output Format
For each query, output one line containing an integer, representing the number of killable Hilichurls with indices .
3
10
32678
9686985
3
12814
3797988
Hint
Sample Explanation
Among , only the Hilichurls are killable, so the answer is .
Note that since your output is allowed to have an absolute error of from the standard answer, outputs such as will all be considered correct.
Constraints
- : .
- : .
- : .
- : .
- : no special properties.
For of the testdata, it holds that , , and is guaranteed to be chosen randomly within the range.
Translated by ChatGPT 5