largest_factor.py: Reordered input checking tests.