import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
int n=s.nextInt();
int d=2;
while(d<=n){
if(n%d==0){
System.out.println(“Not Prime”);
return;
}
else{
System.out.println(“Prime”);
return;
}
}
}
}
working fine in eclipse compiler.
error generated is EXCEPTION IN THREAD"MAIN" .what to change