Primality tests normalized on GetOrComputePrimality. CofactorIsPrime added to factoring results for reuse in other places.

This commit is contained in:
mlemanczyk committed 2025-10-17 16:24:59 +02:00
1 parent c0f38fa104
commit e525484b48
3 files changed
+38 -39

No files matched your search

+3 -2
View File
@@ -1,8 +1,9 @@
namespace PerfectNumbers.Core
{
public readonly struct FactorEntry(ulong value, int exponent)
public readonly struct FactorEntry(ulong value, int exponent, bool isPrime)
{
public readonly ulong Value = value;
public readonly int Exponent = exponent;
public readonly int Exponent = exponent;
public readonly bool CofactorIsPrime = isPrime;
}
}