結果
| 問題 | No.36 素数が嫌い! |
| コンテスト | |
| ユーザー |
koheijkt
|
| 提出日時 | 2026-01-28 12:57:35 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 179 bytes |
| 記録 | |
| コンパイル時間 | 390 ms |
| コンパイル使用メモリ | 82,560 KB |
| 実行使用メモリ | 59,452 KB |
| 最終ジャッジ日時 | 2026-01-28 12:57:39 |
| 合計ジャッジ時間 | 3,595 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 17 WA * 9 |
ソースコード
N = int(input())
if N == 2:
exit(print('NO'))
if N%2 == 0:
exit(print('YES'))
i = 3
while i*i <= N:
if N%i == 0:
exit(print('YES'))
i += 2
print('NO')
koheijkt