getting wrong answer in testcase 2 and 3
code link: https://ide.codingblocks.com/s/43434
Boston numbers- not all testcases are passing
Please add the problem link.
" sum of whose digits is the sum of the digits of its prime factors ".
Sum of the digits of its prime factors.
Your code takes sum of prime factors rather than sum of digits of prime factors.
Correct it and do comment in case of any doubts.
Please try it yourself before going through this.
https://ide.codingblocks.com/s/43539
Here is my code for your reference. This is much simpler way of doing this problem without sieve.