public void SetData() { primes = new Primes(N); factorials = new SortedDictionary <int, int> [N + 1]; factorials[0] = new SortedDictionary <int, int> { }; factorials[1] = new SortedDictionary <int, int> { }; for (int i = 2; i <= N; i++) { factorials[i] = Multiply(factorials[i - 1], i); } divisor = primes.PrimeFactorization_SD(multiple); }
public SortedDictionary <int, int> Multiply(SortedDictionary <int, int> num1, long num2) { return(Multiply(primes.PrimeFactorization_SD(num2), num1)); }