#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; //#define P pair #define FOR(I,A,B) for(int I = int(A); I < int(B); ++I) #define FORR(I,A,B) for(int I = int((B)-1); I >= int(A); --I) #define POSL(x,v) (lower_bound(x.begin(),x.end(),v)-x.begin()) //xi>=v x is sorted #define POSU(x,v) (upper_bound(x.begin(),x.end(),v)-x.begin()) //xi>v x is sorted #define NUM(x,v) (POSU(x,v)-POSL(x,v)) //x is sorted #define SORT(x) (sort(x.begin(),x.end())) // 0 2 2 3 4 5 8 9 #define REV(x) (reverse(x.begin(),x.end())) //reverse #define TO(x,t,f) ((x)?(t):(f)) #define CLR(mat) memset(mat, 0, sizeof(mat)) #define FILV(x,a) fill(x.begin(),x.end(),a) #define FILA(ar,N,a) fill(ar,ar+N,a) #define NEXTP(x) next_permutation(x.begin(),x.end()) ll gcd(ll a,ll b){if(a soinsubunkai(ll x){ // x = {first^second}*... map ans; if(x==1){ans[1]++;return ans;} ll p=x; for(ll i=2;i*i<=x;i++){ while(p%i==0){ p /= i; ans[i]++; } } if(p!=1)ans[p]++; return ans; } int main(){ ll N,K,ans=0; cin >> N >> K; FOR(i,2,N+1){ ans += (soinsubunkai(i).size() >= K); } cout << ans << endl; }