1127

来源:互联网 发布:新闻稿发布左盾网络 编辑:程序博客网 时间:2024/06/11 15:11
[提交][状态][讨论版]

题目描述

Consider a natural number N, your task is to determine if there exist two prime natural numberA and B fitting that A + B = 2N. Of course,A could equal to B(A > 0, B > 0).

输入

Each test case contains only one line, a natural number N (1 ≤ N ≤10^100) without leading zeros.

输出

If can you find such two prime numbers print “YES”, else print “NO”

(without the quotes).

样例输入

12

样例输出

NOYES

提示

来源

2012.2


#include<stdio.h>int main(){    int x;    while(scanf("%d",&x)!=EOF)    {        if(x==1)printf("NO\n");        else printf("YES\n");    }    return 0;}

0 0
原创粉丝点击