Added support for large numbers in the prime factorization problem.