TCS Company Numerical Ability Time and Work

A is twice as good a workman as B and together they finish a piece of work in 18 days. In how many days will A alone finish the work

Read Solution (Total 18)

TCS Other Question

t move will always be in forward direction
1 <= N <= 100
forward displacement > 0
backward displacement > 0
time > 0
distance of ditch in forward direction (FD) > 0
distance of ditch in backward direction (BD) > 0
All input values must be positive integers onl
Some prime numbers can be expressed as Sum of other consecutive prime numbers.
For example

5 = 2 + 3
17 = 2 + 3 + 5 + 7
41 = 2 + 3 + 5 + 7 + 11 + 13

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