Step 1 Choose a number n greater than 2.
If n is prime, Step 2 add 5.
If n is not prime, add 2.
Divide the result of Step 2 by 2.
Step 3
Find the greatest integer less than or equal to the result of Step 2.
In the example above, if the number chosen in Step 1 is 39, what number will be the result of Step 4?