Python-based solution to the 2019-05-31 riddler classic puzzle on https://fivethirtyeight.com/features/can-you-win-the-loteria/