Prime Number Test 
-  Given a natural number N, where N > 1.
    
    -  If there exists an integer i, 1 < i < N, such that i can evenly divide
N, then N is a composite number.
    
 -  Otherwise, N is a prime number.
    
 
 -  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