Doubt related challenges

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”);

}

}

Hi @Mansi
see carefully the input format you don’t have to write enter the number ,you simply have to input the number.

ok my doubt is resolve now,