The Balanced Sum
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- easy
- Seniority
- L3
Problem
Given a positive integer n, return True if n equals the sum of its proper divisors (all divisors excluding n). Example: 28 = 1+2+4+7+14.
Summary
Some numbers have a rare quality that mathematicians revere.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.