1181 对称三位数素数


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

判断一个数是否为对称三位数素数。 所谓“对称”是指一个数,倒过来还是该数。例如,375不是对称数,因为倒过来变成了573。

Input

输入数据含有不多于50个的正整数(0<n<2^32)。

Output

对于每个n,如果该数是对称三位数素数,则输出“Yes”,否则输出“No”。每个判断结果单独列一行。

Sample

Input

11 101 272

Output

No
Yes
No

Source: qianneng


Comments

There are no comments at the moment.