I tried many test cases and I am getting correct result for them, but I am getting wrong answer on submission. Can anybody point out my mistake. Link to my code - ideone.com/fyp63PThanks
Which test cases did you check?
Your code outputs a lot of wrong answers. Example:input: 485262output: 350506divisors: 1 + 2 + 3 + 6 + 9 + 18 + 26959 + 53918 + 80877 +161754 + 242631 which equals 566178.