Use a faster algorithm

Generate possible combinations of factors instead of factorizing numbers