dual prime

3.2

31 votes
Problem

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

Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?