Library: Refactored listSmallestPrimeFactors() from 5 solutions into a library function.