Question: Exercise 4: Prime factors Implement a function that takes an integer as its sole argument and returns a vector containing the prime factors of that
Exercise 4: Prime factors
Implement a function that takes an integer as its sole argument and returns a vector containing the prime factors of that number. For example, if you pass in 100, then function returns the vector (2, 2, 5, 5). The function signature should look like the following.
vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
