Project Euler in Python: Problems 1–10