Question: 1. Write an algorithm (in pseudocode) that will take in a non-zero natural number and will output the smallest prime that divides into it.
1. Write an algorithm (in pseudocode) that will take in a non-zero natural number and will output the smallest prime that divides into it. (You can assume the existence of a remainder function that takes in an number and a divisor and outputs the remainder for this problem.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
