Question: ( Perkovic , Problem 5 . 4 2 ) Write a function primeFac that computes the prime factorization of a number: it accepts a single

(Perkovic, Problem 5.42) Write a function primeFac that computes the prime factorization of a
number:
it accepts a single argument, an integer greater than 1
it returns a list containing the prime factorization
each number in the list is a prime number greater than 1
the product of the numbers in the list is the original number
the factors are listed in non-decreasing order
Sample usage:
 (Perkovic, Problem 5.42) Write a function primeFac that computes the prime

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!