Adding prime factorization problem