Implemented solution for CodeEval's Sum of first 1000 primes challenge
https://www.codeeval.com/open_challenges/4