#include #include using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int N, K, i, j, ans = 0; cin >> N >> K; vector count(N + 1, 0); for (i = 2; i <= N; ++i) { if (count[i] == 0) { count[i] = 1; for (j = i * 2; j <= N; j += i) ++count[j]; } if (count[i] >= K) ++ans; } cout << ans << '\n'; return 0; }