Project Euler in Python: Problems 23–34