问题3318--Perfect Number

3318: Perfect Number

[命题人 : ]
时间限制 : 5.000 sec  内存限制 : 64 MB

题目描述

Many ancient cultures endowed certain integers with special religious and magical significance. One example is the perfect numbers, those integers which are the sum of their positive proper divisors. The first perfect number is • 6 = 1 + 2 + 3 Give you an even number, print “yes” if it is a perfect numbers, others print “no”.

输入

The first line :test case T(T<=100000) The following T lines :an even number n(n< 2^31)

输出

Print “yes” if it is a perfect numbers, others print “no”.

样例输入 Copy

3
2
4
6

样例输出 Copy

no
no
yes

来源/分类

alpc