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