Prime Factors solution FINALLY