結果

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

ソースコード

diff #

from bisect import bisect

primes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59]

le = len(primes)

for i in range(le-1):
    primes[i+1] *= primes[i]

# print(primes)

n = int(input())

if n <= 5:
    print(1)
    exit()

# for i in range(le):
#     if primes[i] < n:
#         pass
#     else:
#         print(i)
#         exit()

# print(15)

loc = bisect(primes, n)
print(loc)
0