import java.util.*; import java.lang.*; import java.io.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int t = sc.nextInt(); int lastPrimeNumberCnt = 0; int lastTimeNumber = 1; for (int i=0; i= lastTimeNumber){ ans = lastPrimeNumberCnt; } for (int target=lastTimeNumber+1; target<=n; target++) { if (target < 2) { continue; } if (target != 2 && target % 2 == 0) { continue; } boolean boo = false; for (int j = 3; j <= Math.sqrt(target); j+=2) { if (target % j == 0) { boo = true; break; } } if(boo){ continue; } ans++; } System.out.println(ans); lastTimeNumber = n; lastPrimeNumberCnt = ans; } } }