Project Euler solutions by Python