1 // This program prints the smallest probable prime >= x, x being given on the
4 // We work with real numbers and integers.
6 #include <cl_integer.h>
10 #include <cl_integer_io.h>
12 // The function nextprobprime() is part of the number theory package.
13 #include <cl_numtheory.h>
15 int main (int argc, char* argv[])
18 fprint(cl_stderr, "Usage: nextprime x\n");
21 cl_R x = (cl_R)argv[1];
22 cl_I p = nextprobprime(x);
24 fprint(cl_stdout, "\n");