Playing With Divisors Is Fun

any one please explain me following test case

input
3
1 1 1
output
125

N is 2x3x5= 30
All factors of 30 are:
P=1x2x3x5x6x10x15x30
Now number of factors of P is 125 if you calculate.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

1 Like