import java.util.Scanner; public class Yukicoder106 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(), k=sc.nextInt(), res=0; int[] cnt = new int[n+1]; for (int i=2; i<=n; i++) if (cnt[i]==0) for (int j=1; i*j<=n; j++) cnt[i*j]++; for (int i=2; i<=n; i++) if (cnt[i]>=k) res++; System.out.println(res); } }