NO DOC
#include <iostream>
using namespace std;
#include <stdlib.h>
#include <givaro/givintprime.h>
#include <givaro/givtimer.h>
#include <givaro/givinit.h>
int main(int argc, char** argv)
{
IntPrimeDom IP;
IntPrimeDom::Element m;
if (argc > 1) m = Integer(argv[1]);
unsigned int r = argc > 2 ? (unsigned int)atoi(argv[2]) : 5;
Timer tim; tim.clear(); tim.start();
bool a = IP.isprime(m,(int)r);
tim.stop();
cout << (a?"true":"false") << endl;
cerr << tim << endl;
return 0;
}
Namespace in which the whole Givaro library resides.
Definition: all_field.C:23