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