結果
問題 | No.8023 素数判定するだけ |
ユーザー |
![]() |
提出日時 | 2025-01-30 21:52:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 293 bytes |
コンパイル時間 | 168 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2025-01-30 21:52:20 |
合計ジャッジ時間 | 5,985 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 25 |
ソースコード
N=int(input())import mathI=int(True)num=[I,I]z=math.log(I,len(num))print(z)need=int(math.sqrt(N))for a in range(need):if N%len(num)==0:ans="NO"breakelse:ans="YES"num.append(I)if N==I:ans="NO"elif N==round(math.log(len(num),math.sqrt(len(num)))):ans="YES"print(ans)