I’m Submitting below code but i didn’t able to understant why this error come an what is means please help me…
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
int t = scn.nextInt();
int count = 1;
for (int i = 1; i <= t; i++) {
int a = scn.nextInt();
int n = 2;
while (count <= a) {
String check = "true";
for (int j = 2; j < n; j++) {
if (n % j == 0) {
check = "false";
}
}
if (check.equals("true")) {
count = count + 1;
}
n = n + 1;
}
System.out.println(n - 1);
}
}
}
