Question: Note :In C++ programming please. Details This time around, your program will not be so chatty. The program will just wait for you to type
Note :In C++ programming please.

Details This time around, your program will not be so chatty. The program will just wait for you to type an integer, and then print a 0 or 1 to indicate whether or not that integer was prime. Here's some sample output of an interactive session (assuming primetest is the name of the executable!). $ ./primetest 1 After n the response is 1, indicating primality; after 12, the response is o, meaning it is not prime. You can end the interactive session by hitting Ctrl-D, or by entering something that is not an integer, like the character 2. Important note: your program is not supposed to print any messages! It is just supposed to read from standard input, and write zeros and ones to standard output. The next section will explain why this is a good idea
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
