Problem 10: Summation of primes
Problem Explanation
- In this challenge we need to find sum of all prime numbers up to
n. - Example:
- If
n = 10then prime numbers before it are2, 3, 5, 7and their sum is17.
- If
n.n = 10 then prime numbers before it are 2, 3, 5, 7 and their sum is 17.