Vivek and factors


what’s wrong with this code??

If you analyze a number greater than 10000 you will find out it is possible for greater numbers to have sum of factors <=10000 too. Just run your algorithm for numbers 1000000 instead of 10000 and it should work.

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.