結果

問題 No.8023 素数判定するだけ
ユーザー aaaaa
提出日時 2017-04-03 00:39:46
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 148 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-07-08 00:22:40
合計ジャッジ時間 3,981 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
n=int(input())
if not n or not ~-n:print('NO');exit()
for i in range(int(math.e),n):
    if not n%i:print('NO');exit()
else:print('YES')
0