Project Euler #50: Consecutive prime sum

  • + 0 comments

    Found the issue. I was sieving up to 2x10^7. For N > 2x10^7 which were themselves the solution (eg. 20027257), the algorithm was returning the longest series < N (when it should be <=N). It was only happening at N larger than my sieve limit, though, so my other tests didn't catch it.