Product of Divisors - Getting WA

Can’t figure out where I’ve gone wrong…

Plz help. Thanx in advance :slight_smile:

Here’s my code: http://www.codechef.com/viewsolution/4330394