1 #include <cln/number.h>
3 #include <cln/integer.h>
6 #include <cln/timing.h>
11 int main (int argc, char * argv[])
16 if (!strcmp(argv[1],"-r")) {
17 repetitions = atoi(argv[2]);
21 if (!strcmp(argv[1],"-l")) {
22 limit = atoi(argv[2]);
31 cerr << "Limit: " << limit << endl;
32 cerr << "Number of repetitions: " << repetitions << endl;
35 for (int rep = repetitions; rep > 0; rep--)
36 { cl_I u = 1, v = 1, p = 1, q = 1;
37 for (int k = 1; k <= limit; k++)
40 p = p*w; q = lcm(q,w);