Perfect Number Check

Computer Mathematics Hard 3 views
Back to Questions

Problem Description

Check if n is a perfect number (sum of proper divisors equals n).

Input Format

One integer n.

Output Format

YES or NO.

Sample Test Case

Input:
28
Output:
YES

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next