List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes it multiple times.
Examples:
in = 137 ---> out = 137
in = 876 ---> out = [73 3 2]
love the "unique" command!
Do not cheat yourself,OK?
I added additional cases to the test suite, so this attempted solution is incorrect now.
2518 Solvers
986 Solvers
140 Solvers
Matlab Basics - Create a row vector
205 Solvers
Matlab Basics - Absolute Value
272 Solvers