|
Project Euler Homework
|
Calculate the sum of all the primes below two million. More...
#include <iostream>#include <iomanip>Go to the source code of this file.
Functions | |
| int | next (int i) |
| int | main () |
Variables | |
| const unsigned | largeN = 2e6 |
| int | count = 0 |
| bool | primes [largeN+1] |
| double | sumP = 0 |
Calculate the sum of all the primes below two million.
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million.
Definition in file 010.cpp.
1.7.3