3 #include <cl_integer.h>
8 int main (int argc, char * argv[])
13 if (!strcmp(argv[1],"-r")) {
14 repetitions = atoi(argv[2]);
18 if (!strcmp(argv[1],"-l")) {
19 limit = atoi(argv[2]);
28 fprint(cl_stderr, "Limit: ");
29 fprintdecimal(cl_stderr, limit);
30 fprint(cl_stderr, "\n");
31 fprint(cl_stderr, "Number of repetitions: ");
32 fprintdecimal(cl_stderr, repetitions);
33 fprint(cl_stderr, "\n");
36 for (int rep = repetitions; rep > 0; rep--)
37 { cl_I u = 1, v = 1, p = 1, q = 1;
38 for (int k = 1; k <= limit; k++)
41 p = p*w; q = lcm(q,w);