Playing with Diviosrs is Fun - One wrong Answer

https://hack.codingblocks.com/contests/c/547/941
Playing with Divisors is fun…
Getting one wrong answer… 83/100 score
Can’t figure out the mistake.

My code-
https://ide.codingblocks.com/s/49112