Project Euler #50: Consecutive prime sum

  • + 1 comment

    You can reduce the size of sieve.By observation,I got that sum of first 126000 primes exceeds 10^12 and for that we need a sieve for 1700000(not exactly). I think this will help.