Small optimizations

This commit is contained in:
mlemanczyk committed 2025-10-11 13:37:23 +02:00
1 parent 74fb7f1535
commit 1cbf49c8b5
4 files changed
+43 -28

No files matched your search

+1 -1
View File
@@ -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++;
}