Project Euler in Python: Problems 54–60