Counting divisors

sir is there something wrong with this code??? it works for some values only and gives TLE for others like 10, 60 etc.

the code link is -

hey @pushkar24sharma
Added 2 lines in your countfactors function :https://ide.codingblocks.com/s/339417
Basically you are not updating prime factor in it

1 Like

ok thank u @Kartikkhariwal1 sir. my mistake :sweat_smile:

1 Like