solve problem5: 'smallest multiple' using Sieve of Eratosthenes, prime factorization helper, and a bunch of lists