結果
| 問題 |
No.8023 素数判定するだけ
|
| コンテスト | |
| ユーザー |
shobonvip
|
| 提出日時 | 2025-02-08 05:24:57 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 35 ms / 1,000 ms |
| コード長 | 147 bytes |
| コンパイル時間 | 322 ms |
| コンパイル使用メモリ | 82,592 KB |
| 実行使用メモリ | 53,772 KB |
| 最終ジャッジ日時 | 2025-02-08 05:25:02 |
| 合計ジャッジ時間 | 4,868 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
n=int(input())
one=int(True)
two=one<<one
if n==one:
print("NO")
exit()
for i in range(two,n):
if n%i:continue
print("NO")
exit()
print("YES")
shobonvip