for this program you will code the following provided prime number algorithm you will implement the algorithm in a function and then call that function from your main function

For this program, you will code the following provided prime number algorithm. You will implement the algorithm in a function, and then call that function from your main() function.

look at the pics^^