Factors and powers

https://ide.codingblocks.com/s/142036 it is the code of the question of this to find it is sphenic number or nothttps://practice.geeksforgeeks.org/problems/sphenic-number/0

Hello @Chandra123,

Your code is printing extra 0 for test cases like:
24
Expected Output:
0
Your Output:
0
0

I have modified your code:

I hope, this would help.
Give a like if you are satisfied.