Solutions for Project Euler problems in idiomatic Python