Added prime factorization