Solutions to Project Euler problems in Python2.7