For example the input is 20
Because 12+(1+2)+(3+2)=20
12 is the x of 20 so we have a whole number for x and we should return Yes
And I wanna code it in python
I tried doing the process for every number in the range of our input and finding the sum of digits and the first factors of every number in range . It works but it takes too long and not very efficient solution
New contributor
Niknaz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.