I have written code and it is correct but it is showing error. It is not showing the collaboration mode, import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner (System.in);
System.out.println(“enter the number”);
int n = sc.nextInt();
int flag=0;
for(int i=2;i<n;i++)
{ if(n%i==0)
{
flag=1;
break;
} }
if(flag==1)
System.out.println(“Not Prime”);
else if(flag==0)
System.out.println(“Prime”);
}
}