Solutions for Project Euler in Python and C++