Re-implementing pollard's p-1 factorization method, using the prime pool.