hello I have written the following code in java .But it is showing compilation error.Please find out my mistake if there is any.
import java.util.Scanner;
class compute
{
public static void main (String args[]) throws java.lang.Exception
{
Scanner ob=new Scanner(System.in);
int i,a,c,d,j;
a=ob.nextInt();
for(i=1;i<=a;i++)
{
c=ob.nextInt();
d=ob.nextInt();
for(j=c;j<=d;j++)
{
if(prime(j)==true)
System.out.print(j+"");
}
System.out.println();
c=0;
d=0;
}
}
boolean prime(int m)
{
int k=1,c=0;
for(k=1;k<=m;k++)
{
if(m%k==0)
c++;
}
if(c==2)
return true;
else
return false;
}
}