import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner koko = new Scanner(System.in); int num = koko.nextInt(); int k = koko.nextInt(); int ptr = 0; int[] prime = new int[200000]; prime[ptr++] = 2; prime[ptr++] = 3; for (int n = 5; n <= num; n += 2) { boolean wflag = false; for (int i = 0; prime[i]*prime[i] <= n; i++) { if (n % prime[i] == 0){ wflag = true; break; } } if (!wflag){ prime[ptr++] = n; } } int number=0; int[] judge = new int[num+1]; for(int i=0; i=k){ number++; } } System.out.println(number); } }