mirror of
https://git.code.sf.net/p/newrpl/sources
synced 2024-11-16 19:51:25 +01:00
Made algorithm give up faster.
This commit is contained in:
parent
8683ec16af
commit
ec0d3b745d
2 changed files with 2 additions and 2 deletions
|
@ -758,7 +758,7 @@ BINT64 sqrtBINT64(BINT64 num)
|
|||
// n CAN'T BE RREG[0] TO [4] OR [7] TO [9]
|
||||
// RETURNS THE FACTOR AS A BINT64 OR -1 AND THE RESULT IN result
|
||||
|
||||
#define GIVEUP_PRIME 2000
|
||||
#define GIVEUP_PRIME 1000
|
||||
#define GIVEUP_ITERATIONS 2000
|
||||
|
||||
BINT64 factorReal(REAL *result,REAL *n)
|
||||
|
|
|
@ -3615,7 +3615,7 @@ case FACTORS:
|
|||
if(Context.precdigits<prec) Context.precdigits=prec;
|
||||
if(Context.precdigits>MAX_USERPRECISION) Context.precdigits=MAX_USERPRECISION;
|
||||
|
||||
#define FACTORS_TRIVIALLIMIT 100
|
||||
#define FACTORS_TRIVIALLIMIT 500
|
||||
|
||||
if(inum<0) {
|
||||
// FIRST, REMOVE FIRST FEW TRIVIAL FACTORS
|
||||
|
|
Loading…
Reference in a new issue