import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn=new Scanner(System.in);
int n=scn.nextInt();
for(int i=0;i<n;i++)
{
int a=scn.nextInt();
int b=scn.nextInt();
primevisit(a,b);
}
}
public static void primevisit(int a,int b){
int count=0;
for(int i=a+1;i<b;i++)
{
for(div=2;div<b-1;div++)
{
if(i%div!=0)
{count++}
}
}
System.out.println(count);
}
}
what is wrong incode
it shows runtime error