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...