結果

問題 No.36 素数が嫌い!
ユーザー matriematrie
提出日時 2020-12-21 22:57:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 123 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 11,856 KB
実行使用メモリ 363,404 KB
最終ジャッジ日時 2023-10-21 11:56:14
合計ジャッジ時間 13,633 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 680 ms
220,464 KB
testcase_01 AC 3,707 ms
363,404 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 27 ms
10,620 KB
testcase_09 AC 29 ms
11,152 KB
testcase_10 AC 28 ms
11,152 KB
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
l=list(range(2,int(n**.5)))+[n]
while n in l:
	l=[x for x in l if x%l[0]>0]
print("NO" if n in l else "YES")
0