more Hidden Digits

Haskell, Python2