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)
{
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;
}
IntFactorDom IP
Definition: ProbLucas.C:43
int main(int argc, char **argv)
Definition: benchmark-recint_exp.C:20
Namespace in which the whole Givaro library resides.
Definition: all_field.C:23
StaticElement< Field > Element
Definition: domain_to_operatorstyle.C:27
MG & a
Definition: rmadd.h:143