Perfect Number


Submit solution

Points: 10 (partial)
Time limit: 8.0s
Memory limit: 64M

Author:
Problem type
Allowed languages
C

Get a sequence of numbers from the user and check if those numbers are perfect number. A perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself.

Sample Input

3

6

7

28

Sample Output

Yes

No

Yes

Explanation

The first line in the sample input is the number of inputs given, Your code should work for any number of inputs. The lines after that contain the values of the input. The output contains Yes if the number is perfect number. Otherwise No.


Comments

There are no comments at the moment.