#include using namespace std; int main() { int N, K; cin >> N >> K; vector V(N + 1); for (int i = 2; i <= N; i++) { if (V.at(i)) continue; for (int j = i; j <= N; j += i) { V.at(j)++; } } int ans = 0; for (auto v : V) if (v >= K) ans++; cout << ans << "\n"; }