Checking a series of Prime Numbers

So, I just learn about C++, yet I don't master it yet.
I know if it is only a number, I got a question:

So, if the input is given many lines, between 1 and 100, contains integers. And the output is 'yes' for primes, and 'no' for non-prime

Sample
If I input:
3
-7
9000
17

The output will be:
YES
NO
NO
YES
what are u trying to say.. try to be straight forward in your question. it as if you are answering your question by yourself.
Topic archived. No new replies allowed.