Prime Number

Trace the following program for the input data 29.
Show me line by line how the program works.