結果

問題 No.36 素数が嫌い!
ユーザー KudeKude
提出日時 2020-09-05 23:21:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 246 ms / 5,000 ms
コード長 155 bytes
コンパイル時間 552 ms
コンパイル使用メモリ 86,816 KB
実行使用メモリ 75,744 KB
最終ジャッジ日時 2023-08-19 13:13:53
合計ジャッジ時間 8,162 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 246 ms
75,484 KB
testcase_01 AC 216 ms
75,524 KB
testcase_02 AC 224 ms
75,644 KB
testcase_03 AC 217 ms
75,372 KB
testcase_04 AC 215 ms
75,520 KB
testcase_05 AC 213 ms
75,484 KB
testcase_06 AC 199 ms
75,552 KB
testcase_07 AC 197 ms
75,484 KB
testcase_08 AC 213 ms
75,608 KB
testcase_09 AC 214 ms
75,528 KB
testcase_10 AC 213 ms
75,488 KB
testcase_11 AC 191 ms
75,556 KB
testcase_12 AC 183 ms
75,520 KB
testcase_13 AC 182 ms
75,388 KB
testcase_14 AC 207 ms
75,596 KB
testcase_15 AC 211 ms
75,392 KB
testcase_16 AC 218 ms
75,744 KB
testcase_17 AC 184 ms
75,496 KB
testcase_18 AC 212 ms
75,648 KB
testcase_19 AC 212 ms
75,224 KB
testcase_20 AC 214 ms
75,584 KB
testcase_21 AC 215 ms
75,600 KB
testcase_22 AC 211 ms
75,380 KB
testcase_23 AC 215 ms
75,516 KB
testcase_24 AC 212 ms
75,392 KB
testcase_25 AC 214 ms
75,500 KB
testcase_26 AC 214 ms
75,536 KB
testcase_27 AC 206 ms
75,556 KB
testcase_28 AC 219 ms
75,556 KB
testcase_29 AC 228 ms
75,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
cnt = 0
for p in range(2, 10 ** 7):
    while n % p == 0:
        n //= p
        cnt += 1
cnt += n > 1
print('YES' if cnt >= 3 else 'NO')
0