Project Euler 788 - Dominating Numbers

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

Thought Process

Interactive Code

Input an integer (yourinput)

Code will output D(yourinput)