Pergunta de entrevista da empresa Micron Technology

Write a function that returns the prime factors of a given integer (between 1 and 10000) as a list.