Write a program to find all the prime factors of a given number. The program must return an array containing all the prime factors, sorted in ascending order. Remember that 1 is neither prime nor composite and should not be included in your output array.
primeFactorize(25) ➞ [5, 5]
primeFactorize(19) ➞ [19]
primeFactorize(77) ➞ [7, 11]