Should get your job done fast Large numbers with many factors will take longer BUG FIXED - SQUARE NUMBERS WILL RESULT IN HAVING THE SQRT TWICE
I got the sorting method from STEM_MC Let me know if there is a way to calculate the time needed to find all the factors.