Question: C++ Implement a function that takes an integer as its sole argument and returns a vector containing the prime factors of that number. For example,
C++
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
Write test code that thoroughly tests the function. The test code should prove it works.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
