Project Euler Question
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
Find 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.
<?php
function code_solution_10() {
$prime_list = get_primes_upto_n(2000000);
return array_sum($prime_list);
}