about | help | code help+videos | done | prefs |
Return an array of integers indicating the number of prime factors each of the integers from 2 up to the input parameter has. For example, listNumPrimeFactors(4) returns {1, 1, 2} because 2 has one prime factor (itself), 3 also has one prime factor, and 4 has two prime factors. listNumPrimeFactors(2) → [1] listNumPrimeFactors(3) → [1, 1] listNumPrimeFactors(4) → [1, 1, 2] ...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