n,k = map(int,input().split()) num = [0]*(n+1) for i in range(2,n+1): if num[i]: continue for j in range(i,n+1,i): num[j] += 1 ans = 0 for x in num: ans += x >= k print(ans)