Boston Numbers - Maths

Test Case-0
Test Case-1
Test Case-2

are not getting passed.Please look into it.

here is my code

Your prime factors checking part of the code is not working properly.
Just correct that by giving a thorough read to this.

not able to get it right even after this.please correct code and rectify my mistakes.

https://ide.codingblocks.com/s/296073 . here is my code