in 3rd test case, its showing TLE. First 2 test cases passed.
plz help!!! : )
CODE :
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int t = scan.nextInt();
int count;
int result =0;
while(t>=1){
int a = scan.nextInt();
int b = scan.nextInt();
for(int i=a; i<=b; i++){
count =0;
for(int j=1; j<=i; j++){
if(i%j==0){
count++;
}
}
if(count == 2){
result++;
}
}
System.out.println(result);
result =0;
t–;
}
}
}