Prime factorization problem