Can anyone help me in solving problem DIVISOR ANALYSIS from CSES problemset?

Revision en1, by Pal, 2021-02-27 19:58:23

here is link to the problem -> https://cses.fi/problemset/task/2182 here is link to my code -> https://cses.fi/paste/e0e917d7faed57ac1ae15c/ in this question three things are asked i am able to find out no of divisors and its sum correctly but not able to find out product of divisors can someone tell me where i am wrong and what is the correct way to find it out.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Pal 2021-02-27 19:58:23 445 Initial revision (published)