Code link : https://ide.codingblocks.com/s/432252
In the code I am trying to find total power for each of prime that would come from different combinations (factors of number).
Formula that I am using is :
iTH_prime’pow = ((prod/arr[i])%m * (arr[i]*(arr[i]+1)/2)%mod)%mod
prod is product of all powers present in array.
Can you tell me the mistake?