#include "arith_utils.h" #include "prime_gen.h" #include #include static int * solve_prime_power_congruence(int degree, int coeffs[], int prime, int power); static int * solve_system_of_order_1_congruence_sets(int numOfSets, int * lengthsOfSets, int ** sets, int mods[]); int chinese_remainder_solution(int numberOfEquations, int scals[], int mods[]){ int i; int x = 0; int m = mods[0]; int modCoeff; for(i=1; i