結果

問題 No.8023 素数判定するだけ
ユーザー Justinlam33
提出日時 2017-04-12 22:38:02
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 232 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-07-18 10:26:36
合計ジャッジ時間 3,866 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
n=int(input())
a=int(math.sin(math.pi)) 
b=(int(math.log(math.e)))
if (n==b): print('NO')
for var in range(b,n):
 if (n==int(math.e)): 
 	print('YES')
 	break
 elif(n%var!=a): 
 	continue
 else: 
 	print('NO') 
 	break

0