Question: Need help on exercise 8 must be in python, theres some code below write a program called smallestprimefact which inputs a positive integer n and
write a program called smallestprimefact which inputs a positive integer n and outputs an ordered list of all primes p with 1
**below is the list it well execute
smallestprimefact(10) == 2
smallestprimefact(49) == 7
smallestprimefact(37) == 37
smallestprimefact(25170751) == 271
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
