結果

問題 No.2750 Number of Prime Factors
ユーザー FromBooska
提出日時 2024-05-10 22:40:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 82,396 KB
実行使用メモリ 53,560 KB
最終ジャッジ日時 2024-12-20 06:36:37
合計ジャッジ時間 1,967 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

primes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97]
N = int(input())
product = 1
for i in range(len(primes)):
    product *= primes[i]
    if product > N:
        print(i)
        break
0