Added prime generation statistics for factorization.