Initial setup for CLion

This commit is contained in:
2026-03-28 16:54:11 +11:00
parent 239cc02591
commit 7b4134133c
1136 changed files with 811916 additions and 0 deletions

25
anslicensing/prime.h Normal file
View File

@@ -0,0 +1,25 @@
#ifndef __PRIME_H
#define __PRIME_H
class prime_factory
{
// construction
public:
prime_factory( unsigned MP = 2000 ); // sieve size
~prime_factory();
// methods
public:
bigint find_prime( bigint start );
int make_prime( bigint & r, bigint &k, const bigint & rmin );
bigint find_special( bigint start, bigint base=0 );
// properties
public:
unsigned np;
unsigned *pl;
};
int is_probable_prime( const bigint &p );
#endif