‘N’ = 7
6 is the only prime? number in 1-7. So, the answer is 1.
The first line contains a single integer ‘T’ denoting the number of test cases, then the test case follows.
The first line of each test case contains a single integer, ‘N’.
For each test case, return a single integer, the number of prime? numbers between 1 and ‘N’ (inclusive).
Output for each test case will be printed on a separate line.
You are not required to print anything; it has already been taken care of. Just implement the function.
1 ≤ T ≤ 10
1 ≤ N ≤ 500
Time limit: 1 sec
Approach:
Algorithm:
Algorithm: