Atul Vipul and Demonetisation - A

3

1 votes
Very-Easy
Problem

India has recently undergone demonetisation. Atul Mallya is a big businessman and has a good reach in Saudi Arabia. He got all his currency converted to Riyal because of his love for the currency.

Vipul is a known crime branch officer and is in full support of demonetisation. He is trying hard to prove his prime minister’s bold step. He is probing into the case of Atul’s currency conversion.

Vipul needs to decode a pattern and find the sum of all non-primes till Nth value in the pattern to solve the case. Help him out with the case.

The pattern is as follows:

1, 7, 17, 31, 49...

You have to find the sum of all non-prime numbers till Nth term of the series.

The only line of the input contains the value of n.

Your Input : 12

NOTE You do not need to create a program for this problem you have to write your answers of given input in given code snippet

  • To see how to submit solution please check this link

Compile and Test can give Wrong Answer. Once you have written your answer, press Submit button to check your result.

Sample Input
5
Sample Output
50
Time Limit: 5
Memory Limit: 256
Source Limit:
Contributers:
Editor Image

?