import java.util.*; public class HatePrenum{ public static void main(String... args){ Scanner scan = new Scanner(System.in); HatePrenum hate = new HatePrenum(); int N = scan.nextInt(); int K = scan.nextInt(); int[] d = new int[N+1]; int res=0; for(int i = 2; i <= N; i++){ if(d[i] == 0){ for(int j = 1; i*j<=N; j++){ d[i*j]++; } } } for(int i = 2; i <= N; i++){ if(d[i]>=K)res++; } System.out.println(res); } }