結果
| 問題 |
No.8023 素数判定するだけ
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2020-11-24 02:48:02 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 1,000 ms |
| コード長 | 126 bytes |
| コンパイル時間 | 191 ms |
| コンパイル使用メモリ | 82,380 KB |
| 実行使用メモリ | 53,408 KB |
| 最終ジャッジ日時 | 2024-07-23 18:21:20 |
| 合計ジャッジ時間 | 5,075 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
n = int(input())
a = True
for i in range(True<<True,n):
if n%i==False: a = False
print("YES" if a and n != True else "NO")
convexineq