Project Euler 731 - A Stoneham number

Official link: https://projecteuler.net/problem=731