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[150000]; prime[ptr++] = 2; prime[ptr++] = 3; for (int n = 5; n <= 2000000; 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[] count = new int[num+1]; int number=0; for(int i=2; i=k){ number++; break; } } } } System.out.println(number); } }