about | help | code help+videos | done | prefs |
Given an integer greater or equal to 2, return an array of the integer prime factors of the input parameter. These prime factors must be in increasing order. Multiplying the complete list of prime factors together will produce the original input parameter. Note that each number will have at most 30 prime factors. listFactors(1098482931) → [3, 3, 3, 7, 7, 13, 13, 17, 17, 17] listFactors(2) → [2] listFactors(7) → [7] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 440
Copyright Nick Parlante 2017 - privacy