#include #include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int n, k; cin >> n >> k; vector v(n+1); for (int i = 2; i <= n; i++) { if (v.at(i) == 0) { for (int j = i; j <= n; j += i) { v.at(j)++; } } } int ans{}; for (int i = 2; i <= n; i++) { if (v.at(i) >= k) { ans++; } } cout << ans << endl; }