結果

問題 No.36 素数が嫌い!
ユーザー TawaraTawara
提出日時 2015-12-03 15:22:18
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 238 ms / 5,000 ms
コード長 164 bytes
コンパイル時間 381 ms
コンパイル使用メモリ 77,676 KB
実行使用メモリ 77,748 KB
最終ジャッジ日時 2023-09-09 07:25:37
合計ジャッジ時間 5,809 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 151 ms
77,296 KB
testcase_01 AC 204 ms
77,592 KB
testcase_02 AC 74 ms
76,312 KB
testcase_03 AC 74 ms
76,308 KB
testcase_04 AC 75 ms
76,128 KB
testcase_05 AC 77 ms
77,320 KB
testcase_06 AC 76 ms
77,324 KB
testcase_07 AC 77 ms
77,340 KB
testcase_08 AC 77 ms
77,228 KB
testcase_09 AC 77 ms
77,228 KB
testcase_10 AC 75 ms
77,284 KB
testcase_11 AC 118 ms
77,220 KB
testcase_12 AC 205 ms
77,648 KB
testcase_13 AC 204 ms
77,748 KB
testcase_14 AC 178 ms
77,476 KB
testcase_15 AC 75 ms
76,492 KB
testcase_16 AC 75 ms
76,624 KB
testcase_17 AC 74 ms
76,508 KB
testcase_18 AC 77 ms
77,292 KB
testcase_19 AC 139 ms
77,460 KB
testcase_20 AC 238 ms
77,476 KB
testcase_21 AC 201 ms
77,308 KB
testcase_22 AC 205 ms
77,340 KB
testcase_23 AC 152 ms
77,548 KB
testcase_24 AC 161 ms
77,476 KB
testcase_25 AC 160 ms
77,300 KB
testcase_26 AC 174 ms
77,284 KB
testcase_27 AC 214 ms
77,544 KB
testcase_28 AC 171 ms
77,332 KB
testcase_29 AC 233 ms
77,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt,ceil
N = input()
cnt = 0
for i in xrange(2,int(ceil(sqrt(N)))+1):
	while N%i==0: cnt+=1; N/=i
if N!=1: cnt+=1
print "NO" if cnt < 3 else "YES"
0