Cody

Problem 43269. Get all prime factors

List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as twice Examples:

in = 24 ---> out = [3 2 2 2]

in = 876 ---> out = [73 3 2 2]

Solution Stats

77.39% Correct | 22.61% Incorrect
Last solution submitted on Sep 15, 2019

Problem Comments

Recent Solvers82

Suggested Problems

More from this Author43