結果
問題 |
No.8023 素数判定するだけ
|
ユーザー |
|
提出日時 | 2024-09-10 07:26:10 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 332 bytes |
コンパイル時間 | 221 ms |
コンパイル使用メモリ | 82,268 KB |
実行使用メモリ | 54,036 KB |
最終ジャッジ日時 | 2024-09-10 07:26:15 |
合計ジャッジ時間 | 4,928 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 25 |
ソースコード
zero = int(False) one = int(True) forty_three = int(str(one) + str(zero) + str(one) + str(zero) + str(one) + str(one), one + one) def plus(A): return eval(chr(forty_three).join(map(str, A))) N = int(input()) if N == one: exit(print("NO")) for i in range(plus([one, one]), N): if N % i == zero: exit(print("NO")) print("YES")