#define _USE_MATH_DEFINES #include using namespace std; signed main() { ios::sync_with_stdio(false); cin.tie(0); int n, k; cin >> n >> k; int ans = 0; auto cnt = [] (int x) { int c = 0; for (int p = 2; p * p <= x; p++) { c += x % p == 0; while (x % p == 0) { x /= p; } } c += x != 1; return c; }; for (int i = 2; i <= n; i++) { ans += cnt(i) >= k; } cout << ans << '\n'; return 0; }