1156 Sexy Primes
Statement
Metadata
- 作者: 陈越
- 单位: 浙江大学
- 代码长度限制: 16 KB
- 时间限制: 400 ms
- 内存限制: 64 MB
Sexy primes are pairs of primes of the form (
Now given an integer, you are supposed to tell if it is a sexy prime.
Input Specification
Each input file contains one test case. Each case gives a positive integer
Output Specification
For each case, print in a line Yes
if No
instead, then print in the next line the smallest sexy prime which is larger than
Sample Input 1
Sample Output 1
Sample Input 2
Sample Output 2
Last update: May 4, 2022