You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In FactorAlgorithmBase don't add BigInteger.ONE as factor only add prime factors:
public SortedMultiset<BigInteger> factor(BigInteger N) {
SortedMultiset<BigInteger> factors = new SortedMultiset_BottomUp<BigInteger>();
// first get rid of case |N|<=1:
if (N.abs().compareTo(I_1)<=0) {
if (!N.equals(BigInteger.ONE)) {
factors.add(N);
}
return factors;
}
// make N positive: