Your task is to find out how many prime numbers which satisfy this property are present in the range 3 to N subject to a constraint that summation should always start with number 2.Â
Write code to find out number of prime numbers that satisfy the above mentioned property in a given range.Â
Input Format:Â
First line contains a number NÂ
Output Format:Â
Print the total number of all such prime numbers which are less than or equal to N.Â
Constraints:
1. 2<N<=12,000,000,000
Â
Sample Input and Output
1
20
2
(Below 20, there are 2 such numbers: 5 and 17). 5=2+3 17=2+3+5+7