#include #include #include #include #include #include #include #include #include static const int MOD = 1000000007; using ll = int64_t; using u32 = uint32_t; using namespace std; template constexpr T INF = ::numeric_limits::max()/32*15+208; int main() { int n, k; cin >> n >> k; vector v(n+1, 0); for (int i = 2; i <= n; ++i) { if(v[i] >= 1) continue; for (int j = i; j <= n; j += i) { v[j]++; } } int ans = 0; for (int i = 2; i <= n; ++i) { if(v[i] >= k) ans++; } cout << ans << "\n"; return 0; }