Challange Check prime

Always 2nd test case shows wrong answer
code:
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();

	boolean flag = true;

// true = no is prime
int divisor = 2;
while (divisor <= n - 1) {
if (n % divisor == 0) {
flag = false;
}
divisor = divisor + 1;
}
if(n <= 1)System.out.println(“Non Prime”);
else if (flag == false) {
System.out.println(“Non Prime”);
} else {
System.out.println(“Prime”);
}
}
}

Hey @Abhishek-Verma-1947662505352705
You need to print “Not prime” instead of “Non Prime”.
Your output should exactly match the output format as given in the question.