結果
問題 | No.8023 素数判定するだけ |
ユーザー |
|
提出日時 | 2020-06-10 19:33:29 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
WA
|
実行時間 | - |
コード長 | 275 bytes |
コンパイル時間 | 256 ms |
コンパイル使用メモリ | 7,072 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-23 13:29:40 |
合計ジャッジ時間 | 4,105 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 1 |
ソースコード
local n=tonumber(io.read())local zero=math.floor(math.sin(math.pi))local one=math.abs(math.cos(math.pi))local two=math.floor(math.exp(one))local cheker=truefor i=two,math.sqrt(n) doif n%i==zero thencheker=falseendendprint(cheker and "YES" or "NO")