Code giving Wrong Answer

https://ide.codingblocks.com/s/243345 here is my code would u look at it

i mean i am gettin WA in 2 of the test cases


you have to take sum of digits of prime factors!
lets say that 13 is one of the prime factor then its contribution is 1+3=4 and not 13.

okay now i am getting an error after i tried breaking the prime no https://ide.codingblocks.com/s/243345

didnt look at your given code thankss got it