結果

問題 No.36 素数が嫌い!
ユーザー matriematrie
提出日時 2020-12-22 08:04:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 3,774 ms / 5,000 ms
コード長 116 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 11,952 KB
実行使用メモリ 10,176 KB
最終ジャッジ日時 2023-10-21 12:29:00
合計ジャッジ時間 43,818 ms
ジャッジサーバーID
(参考情報)
judge12 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,865 ms
10,176 KB
testcase_01 AC 2,050 ms
10,176 KB
testcase_02 AC 29 ms
10,144 KB
testcase_03 AC 29 ms
10,176 KB
testcase_04 AC 30 ms
10,176 KB
testcase_05 AC 42 ms
10,176 KB
testcase_06 AC 41 ms
10,176 KB
testcase_07 AC 41 ms
10,144 KB
testcase_08 AC 30 ms
10,176 KB
testcase_09 AC 29 ms
10,176 KB
testcase_10 AC 39 ms
10,176 KB
testcase_11 AC 1,124 ms
10,144 KB
testcase_12 AC 3,435 ms
10,144 KB
testcase_13 AC 3,774 ms
10,176 KB
testcase_14 AC 42 ms
10,176 KB
testcase_15 AC 29 ms
10,176 KB
testcase_16 AC 29 ms
10,144 KB
testcase_17 AC 30 ms
10,144 KB
testcase_18 AC 30 ms
10,176 KB
testcase_19 AC 1,505 ms
10,176 KB
testcase_20 AC 3,663 ms
10,176 KB
testcase_21 AC 2,962 ms
10,176 KB
testcase_22 AC 2,925 ms
10,176 KB
testcase_23 AC 1,778 ms
10,176 KB
testcase_24 AC 743 ms
10,176 KB
testcase_25 AC 2,054 ms
10,176 KB
testcase_26 AC 2,471 ms
10,176 KB
testcase_27 AC 3,281 ms
10,176 KB
testcase_28 AC 2,445 ms
10,176 KB
testcase_29 AC 3,667 ms
10,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=m=int(input())
c,i=0,2
while n>=i*i:
	while m%i<1: m/=i; c+=1
	i+=1
	if c>2: break
c+=m>1
print(["YES","NO"][c<3])
0