Project Euler 56 - Powerful digit sum

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