Question bank › Math
Dsa Math Hard

Sum of Divisors

Calculate the sum of all divisors of a given integer N. A divisor is a number that divides N without leaving a remainder. Output the sum. The input contains a single integer N (1 <= N <= 10^6). Example Input: 12 Example Output: 28

Key concepts

mathdivisorssum

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of InterviewLab's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.