// ---------------------------------------------------------------------- // // Module: ss_gen.cc // Description: Generates instances of combinatorial problem // related to factorization using a Quadratic // Residuosity Oracle. // Contributed by: Rene Peralta // Date: 1999 // // ---------------------------------------------------------------------- #include "small_primes.h" #include #include #include #include #include #include //#include #define SECRET 101 // this is the index of the first prime in the prime base. #define OFFSET 6 #define PRIME_BASE_SIZE 10 ln mu(ln a, ln q, ln R); int main( int argc, char *argv[ ] ) { long T[PRIME_BASE_SIZE]; ln R = 1; ln t; ln accum1 = 1; ln accum2 = 0; for( long i=0 ; i