#include using namespace std; int main() { int a[2000000] = {0},n,x; long long ans = 0; cin >> n >> x; for(int i = 2; i <= n; i++){ if (a[i - 2] == 0) { for(int k = i; k <= n; k += i) { a[k - 2]++; } } if (a[i - 2] >= x) ans++; } cout << ans << "\n"; return 0; }