Problem 3: Largest prime factor

I also refactored the prime library.  Not entirely happy with its
interface.  The use of a generator makes it smaller but I suspect
slower.  I'll have to build test for both the performance and the
results.