Solution for problem 70.
factory.py: Prime factorization