You are given an integer N, and you need to find the number of Special Primes smaller than or equal to N.
Note:
1. A Prime number is a number that has only two factors 1 and N itself.
2. A Prime number P is known as Special Prime if it can
be represented as follows:
P = A^2 + B^4
where A and B are positive integers.
3. A and B should be greater than 0.
Input Format:
The first line of the input contains an integer 'T' denoting the number of test cases.
The first and only line of each test case consists of a single positive integer 'N'.
Output Format:
For each test case, print an integer that denotes the count of the number of Special Primes smaller than or equal to 'N' in a separate line.
The output of each test case should be printed in a separate line.
Note:
You don't have to print anything, and it has already been taken care of. Just Implement the given function.
Constraints:
1 <= T <= 100
1 <= N <= 5 * 10^5
Where 'T' represents the number of test cases, and 'N' is the given number.
Time Limit: 1 sec.