0% found this document useful (0 votes)
45 views1 page

Perfect Number and Divisors

Uploaded by

Garg Yugal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views1 page

Perfect Number and Divisors

Uploaded by

Garg Yugal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Perfect Number and Divisors

Have you heard of Perfect numbers? If not let me tell you what is it, Perfect Numbers are integers that are
equal to the sum of all its divisors except that number itself.

Now, given an integer N ,write a program to print true if it is a perfect number or false if it is not a perfect
number.

Input format
The first line contains the number of test cases T .

Each test case contains an integer N is provided.

Output format
For each test case on a new line, print true or false depending on N .

Constraints
1 <= T <= 10

1 <= N <= 100

Time Limit
1 second

Example
Input

28

96

Output

true

false

You might also like