Hi Everyone,
I was trying to solve the problems in Project Euler. I tried to solve the Problem 10 which says :
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
Find the sum of all the primes below two million.
The following is my implementation :
This is the following output I am getting :
which is wrong.My code works fine for small number such as 10.
Can anyone please let me know where I am going wrong?