Significant improvement on .primeFactor