Boston numbers question has wrong information?

The question boston numbers has some examples such as 22 and 58 , how is 22 boston number as 2+2 is not equal to prime factorization of 22 which is 2+11 =13

hi @garvit510bhatia,
here u need to find the number whose sum of digits are equal to sum of digits of its factor except 1

check here for implementation ive commented the code : https://ide.codingblocks.com/s/656874

cant really figure out how to do this question and also cant understand the solution you provided with

@garvit510bhatia do a dry run and its asking to find the number whose sum of digits are equal to sum of digits of its factor except 1

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.