Prime Number Test

  1. Given a natural number N, where N > 1.
  2. Repeat the previous step until the input number is 0.

The program may run as follows:

8
8 is NOT a prime number.
11
11 is a prime number.
0