[Solved] JAVA: Identify a prime number [closed]


Remove the
continue;
after line
System.out.println("The integer you entered " + n + " is not a PRIME NUMBER!");.

What continue; does is that it skips all the section of the loop that comes after it and performs the next iteration of the loop.

1

solved JAVA: Identify a prime number [closed]