結果
問題 |
No.8023 素数判定するだけ
|
ユーザー |
|
提出日時 | 2020-06-10 19:30:00 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
WA
|
実行時間 | - |
コード長 | 269 bytes |
コンパイル時間 | 352 ms |
コンパイル使用メモリ | 7,200 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-23 13:22:16 |
合計ジャッジ時間 | 4,186 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 25 |
ソースコード
local n=io.read("*n") 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=true for i=two,math.sqrt(n) do if n%i==zero then cheker=false end end print(cheker and "YES" or "NO")