Accept a positive integer n as input and print the sum of all prime numbers in the
range [1, n], endpoints inclusive. If there are no prime numbers in the given
range, then print 0.
Input
A single line containing the positive integer n.
Output
A single integer: the sum of every prime number that is less than or equal to n,
or 0 if there is none.
For example, if the input is 10, the primes are 2, 3, 5 and 7, so the output is
17.
Write a complete program: read the input with input() and print the result with print().
Input
10
Output
17