#include using namespace std; int main(void) { int N, K; cin >> N >> K; vector cnt(N + 1, 0); for(int i = 2; i <= N; ++i) if(cnt[i] == 0) for(int j = i; j <= N; j += i) cnt[j] += 1; int ans = 0; for(int i = 2; i <= N; ++i) if(cnt[i] >= K) ans += 1; cout << ans << "\n"; return 0; }