Refactored neatly into the 3 line program for prime factors