add prime factorization