CJCoding With Joseph

Check Prime Number (for input)

Read an integer n from standard input and decide whether it is prime. Print exactly Prime if it is, or Not prime if it is not. A number is prime when it is greater than 1 and has no divisor other than 1 and itself.

For input 7 the output is:

Prime

For input 9 the output is:

Not prime

Expected Output:

Prime
Topics:
Loops
๐Ÿ“ฅ Auto-Input:
7\n
This input is automatically fed to your program's stdin
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (sysout, psvm, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.