結果

問題 No.106 素数が嫌い!2
ユーザー pluto77
提出日時 2016-03-28 13:57:49
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 224 ms / 5,000 ms
コード長 237 bytes
コンパイル時間 510 ms
コンパイル使用メモリ 77,056 KB
実行使用メモリ 234,496 KB
最終ジャッジ日時 2024-10-02 06:19:41
合計ジャッジ時間 4,220 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding: utf-8
##yuki_106

n,k=map(int,raw_input().split())
s=[0 for i in xrange(20000001)]


for i in xrange(2,n+1):
 if s[i]==0:
  for j in xrange(i,n+1,i):
   s[j]+=1
   
res=0
for i in xrange(2,n+1):
 if s[i]>=k:
  res+=1

print res
0