結果

問題 No.36 素数が嫌い!
ユーザー taba
提出日時 2016-05-08 04:31:44
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 209 bytes
コンパイル時間 131 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,656 KB
最終ジャッジ日時 2024-10-05 10:34:04
合計ジャッジ時間 1,785 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 17 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

def isprime(n):
	if n==2:return True
	if n<2 or n&1==0:return False
	for i in xrange(3,int(n**0.5)+2,2):
		if n%i==0:
			return False
	return True

n=input()
if n==1 or isprime(n):
	print"NO"
else:
	print"YES"
0