#include <cmath>
#include "misc/prime.h"
#include "factory/cf_primes.h"
Go to the source code of this file.
◆ iiIsPrime0()
Definition at line 12 of file prime.cc.
13{
16 {
17 int a=0;
20 do
21 {
27 } while ( a<= e);
30 }
35 {
38 {
42 }
44 }
46 {
48 {
51 {
55 }
56 }
57 }
59}
int cf_getNumSmallPrimes()
int cf_getSmallPrime(int i)
gmp_float sqrt(const gmp_float &a)
static int iiIsPrime0(unsigned p)
◆ IsPrime()
Definition at line 61 of file prime.cc.
62{
64 else if (
p == 1)
return 1;
65 else if ((
p == 2)||(
p==3))
return p;
66 else if (
p < 0)
return 2;
69}