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

+16 -5
View File
@@ -1,8 +1,19 @@
namespace PerfectNumbers.Core
{
public readonly struct FactorEntry(ulong value, int exponent)
{
public readonly ulong Value = value;
public readonly int Exponent = exponent;
}
public readonly struct FactorEntry
{
public readonly ulong Value;
public readonly int Exponent = 1;
public FactorEntry(ulong value, int exponent)
{
Value = value;
Exponent = exponent;
}
public FactorEntry(ulong value)
{
Value = value;
}
}
}