You are given the number \(N\).
Determine the number of pairs \(P,Q\) such that they satisfies the following conditions:
- \(1 < P < Q, P \times Q ≤ N\)
- Numbers \(P\) and \(Q\) are co-prime numbers
Note: Two integers \(a\) and \(b\) are called coprime, relatively prime, or mutually prime, if the only positive integer that is a divisor of both of these numbers is 1.
Input format
- The first contains an integer \(T\) that denotes the number of test cases in the input.
- The next \(T\) lines contain an integer \(N\).
Output format
Print \(T\) lines. The \(i^{th}\) line must contain the answer for the \(i^{th}\) test case.
Constraints
\(1≤T≤10\)
\(1≤N≤10^9\)
2 12 18
3 6
In the first case the following pairs are suitable for us: (2,3);(2,5);(3,4).
In the second case the following pairs are suitable for us: (2,3);(2,5);(2,7);(2,9);(3,4);(3,5).
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
Login to unlock the editorial
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor