Project Euler 788 - Dominating Numbers

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