A prime number is an N N-subtractorization if it can be expressed as the difference of…
- User
A prime number is an N N-subtractorization if it can be expressed as the difference of two primes that are both at most N N. For example, the complete set of 5 5-subtractorizations is { 2 , 3 } {2,3} because 5 − 3
2 5−3=2 and 5 − 2
3 5−2=3. For a given N N, how many N N-subtractorizations are there? Constraints 1 ≤ T ≤ 100 1≤T≤100 1 ≤ N ≤ 10 , 000 , 000 1≤N≤10,000,000 Input Format Input begins with an integer T T, the number of test cases. Each case is a single line that contains the integer N N. Output Format For the i ith test case, print "Case #i: " followed by a single integer, the number of N N-subtractorizations. Sample Explanation The first case is explained above. In the second case, the complete set of 8 8-subtractorizations is { 2 , 3 , 5 } {2,3,5}. Sample Input 2 5 8 Sample Output Case #1: 2 Case #2: 3 solve in c++. make no comments in code. limit naming to 3 letters. and make use of the fact that if prime is a sum of two primes it is 2 and other prime not. because odd even sum
- Assistant