Project Euler codes in python, C++ and C