問題一覧 > ネタ問題

No.8023 Just Primality Testing

レベル : / 実行時間制限 : 1ケース 1.000秒 / メモリ制限 : 128 MB / スペシャルジャッジ問題 (複数の解が存在する可能性があります)
タグ : (AC するまで非表示) / 解いたユーザー数 138
作問者 : mai
お気に入りにしたユーザー ProblemId : 1566 / 自分の提出
問題文最終更新日: 2020-04-03 12:46:44
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder April fool contest 2017 (順位表) の他の問題:

Problem Statement

A natural number $N$ is given from standard input.

Print "YES" if $N$ is prime, and "NO" if it is not prime.

However, your submitted code must not contain any of the following characters or strings.

  • The digits 0,1,2,3,4,5,6,7,8,9
  • The symbols +-*/
  • The string prime (case-insensitive)

Note: Due to these restrictions, there are languages in which submission is absolutely impossible. (e.g. brainfuck)

Check carefully for things such as "#include <bits/stdc++.h>", "//", "/* ... */", and "return 0;".

Input

N

$1 \le N \le 1000$

Output

Print "YES" if $N$ is prime, and "NO" if it is not prime.

Print a newline at the end.

Sample

Sample 1
Input
1
Output
NO

1 is not prime.

Sample 2
Input
57
Output
NO

The Grothendieck prime is not prime.

Sample 3
Input
2
Output
YES

2 is even, but it is prime.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。