Added (prime-factors) helper function