Exercise: Check Whether a Number is Prime
Use what you've learned so far to check if a number is prime.
We'll cover the following...
Prime numbers are numbers that are only divisible by itself and 1. Examples of these are the following:
2, 3, 5, 7, 11, 13
Problem statement
The following program checks ...