Primality tests normalized on GetOrComputePrimality. CofactorIsPrime added to factoring results for reuse in other places.
This commit is contained in:
1 parent
c0f38fa104
commit
e525484b48
3 files changed
+38
-39
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user