Small optimizations
This commit is contained in:
1 parent
74fb7f1535
commit
1cbf49c8b5
4 files changed
+43
-28
No files matched your search
@@ -248,7 +248,7 @@ internal static partial class PrimeOrderCalculator
|
||||
// bool isPrime = PrimeTester.IsPrimeInternal(factors.Cofactor, CancellationToken.None);
|
||||
if (!factors.FullyFactored && factors.Cofactor > 1UL && isPrime)
|
||||
{
|
||||
buffer[length] = new FactorEntry(factors.Cofactor, 1);
|
||||
buffer[length] = new FactorEntry(factors.Cofactor);
|
||||
length++;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user