結果

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

ソースコード

diff #

n=int(input())
s=set()

def f(n):
    for i in s:
        if n%i==0:
            return False
    s.add(n)
    return True

cnt=0
ans=1
i=2
while ans<n:
    if f(i):
        ans*=i
        if ans<=n:
            cnt+=1
    i+=1

print(cnt)
0