DWITE '09 R7 #2 - Sum of Primes

View as PDF

Submit solution

Points: 7
Time limit: 2.0s
Memory limit: 64M

Problem type
DWITE Online Computer Programming Contest, May 2010, Problem 2

Lets keep this simple.

The input will contain 5 lines, integers 2 \leq N \leq 100\,000

The output will contain 5 lines, integer sums of all prime numbers up to (inclusive) N.

Sample Input

2
3
4
5
100000

Sample Output

2
5
5
10
454396537

Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) Problem Resource: DWITE


Comments

There are no comments at the moment.