Small optimizations
This commit is contained in:
1 parent
74fb7f1535
commit
1cbf49c8b5
4 files changed
+43
-28
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user