Made algorithm give up faster.

This commit is contained in:
claudiol 2018-04-28 10:44:30 -04:00
parent 8683ec16af
commit ec0d3b745d
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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