private static FactorPair[] MakeFactorPairs(mpz_t n) { var factorPairs = GetFactors(n).Select(p => new FactorPair(p, n.DivideExactly(p))).Distinct().ToArray(); return(factorPairs); }