I\'m new to Python and struggling with a coursework challenge. I need to use a loop function to list all prime factors of a given number (not including 1 and the number itself).