結果
問題 |
No.8023 素数判定するだけ
|
ユーザー |
|
提出日時 | 2024-09-10 13:22:41 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 37 ms / 1,000 ms |
コード長 | 268 bytes |
コンパイル時間 | 350 ms |
コンパイル使用メモリ | 82,516 KB |
実行使用メモリ | 53,816 KB |
最終ジャッジ日時 | 2024-09-10 13:22:46 |
合計ジャッジ時間 | 5,056 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
zero = int(False) one = int(True) forty_three = int(''.join([str(one), str(zero), str(one), str(zero), str(one), str(one)]), one << one) N = int(input()) if N == one: exit(print("NO")) for i in range(one << one, N): if N % i == zero: exit(print("NO")) print("YES")