#include #include using namespace std; int main(void) { int n; int k; vector v; cin >> n >> k; v.resize(n + 1, 0); for(int i = 2; i <= n; i++) { if(v[i] != 0) continue; for(int j = i; j <= n; j += i) v[j]++; } int c = 0; for(int i = 2; i <= n; i++) if(v[i] >= k) c++; cout << c << endl; return 0; }