You can use generators to simplify nested loops and make it easier to break out of them.
Number 73 is a number packed with interesting properties.