Project Euler Problem solutions in Python