Can anyone tell me how is 22, 58, 85 a Boston number?
Ques - https://hack.codingblocks.com/contests/c/512/1103
My sol - https://ide.codingblocks.com/s/39454
Coz it is given in question that 378 = 2 × 3 × 3 × 3 × 7 is a Boston number since 3 + 7 + 8 = 2 + 3 + 3 + 3 + 7 but we cant apply this with 22 as 22 = 2*11(prime factors) and 2+2(sum of digits) are not same or I didn’t understood the question properly.
Boston numbers doubts
Hey Mukul, Boston no.s are the no.s “the sum of whose digits is the sum of the digits of its prime factors obtained as a result of prime factorisation (excluding 1 )”
So, in case of 22 ,
22 = 2*11
which results in
2+2 = 2+1+1.