Sir, I submitted the code with the following program:
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
if(isprime(n))
System.out.println("Prime");
else
System.out.println("Not Prime");
//sc.close();
}
private static boolean isprime(int n) {
if(n==1)
return false;
for(int i=2;i*i<=n;i++) {
if(n%i==0)
return false;
}
return true;
}
but still, I got 75 points although all test cases give the correct answer