java zz big n
chooses an n bit test case and writes a small file to be included when
mp.c
is compiled.
This provides C definitions of some big numbers to challenge
the modPow routine as a test.
The answer is included.
The main routine that includes the "#include xx.h" statement
can be enabled to use this file.
In a Unix command shell this can be used thus:
javac zz.java
java zz big 1492 > xx.h
gcc -O3 mp.c
time ./a.out
The java program, zz, will choose a test case of 1492 bits,
file xx.h will be created and included in the source of the C program
which prints the result and "Goodness!" if it computes the provided answer.