Re: Project Euler Questio 2

Hello goldenpsycho!

The only problem I can see with your code is that you start adding to **sum** the even prime numbers __after__ three. i.e you don't add prime number **2** to your **sum**. Just add **2** to your **sum** and you will get what you want.

Hope this helps.

Re: Project Euler Questio 2

Hi andread90, thank you so much for your help. i can't believe that i overlooked such a small thing. I had written this program 3 times before coming to this conclusion so i guess i lost a bit of patience.

Thanks, your solution worked.