There are objects each with a value
. An object
is defined as shady if
has a prime number of digits, and the sum of its digits is prime.
Output whether each object is a shady object or not!
Input Specification
The first line will contain the integer
.
The next lines will each contain one integer,
, the values of the objects.
Output Specification
Output lines, the
line is
YES
if the object is shady, and
NO
otherwise.
Sample Input
3
59
2132
3920393
Sample Output
NO
NO
YES
Comments