| TheForces Round #10 (TEN-Forces) |
|---|
| Finished |
You are given an non-negative integer $$$n$$$.
Your task is to find the the count of $$$x$$$ $$$(0 \le x \le n)$$$ that can be showed that $$$x = a^2 + b^2$$$ ($$$a$$$ and $$$b$$$ are integers).
The input consists of multiple test cases. The first line contains a single integer $$$t$$$ $$$(1 \le t \le 10^5)$$$ — the number of test cases.
The each test case contains a single integer $$$n$$$ $$$(0 \le n \le 10^7)$$$.
For each test case, output a single integer.
4 1 6 576 10000000
2 5 200 1985460
In the second test case, it can be proven that $$$3$$$ and $$$6$$$ can not be showed that $$$a^2 + b^2$$$.
| Name |
|---|


