题目描述
a number can be said dual prime. if the number is prime and the sum of digits of the number is also a prime number.
If a number is dual prime then print YES else print NO
SAMPLE INPUT
2
13
11
SAMPLE OUTPUT
NO
YES
输入格式
见题面
输出格式
见题面
样例输入
2
13
11
SAMPLE
样例输出
NO
YES