結果

問題 No.8023 素数判定するだけ
ユーザー MasKoaTSMasKoaTS
提出日時 2022-01-29 14:10:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 170 bytes
コンパイル時間 347 ms
コンパイル使用メモリ 82,172 KB
実行使用メモリ 53,712 KB
最終ジャッジ日時 2025-01-02 00:43:06
合計ジャッジ時間 5,250 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
if(n == (True << True)):
    print("YES")
    exit()
for i in range(True << True, n):
    if not(n % i):
        print("NO")
        exit()
print("YES")
0