Switched to .IsPrime which performed best in benchmarks.
This commit is contained in:
1 parent
6e632ba03a
commit
1ed5afe689
2 files changed
+13
-7
No files matched your search
@@ -4,7 +4,7 @@ namespace PerfectNumbers.Core;
|
||||
|
||||
public static class HeuristicPrimeSieves
|
||||
{
|
||||
private const int SieveLength = PerfectNumberConstants.MaxQForDivisorCycles;
|
||||
private const int SieveLength = PerfectNumberConstants.MaxQForDivisorCycles / 4;
|
||||
private const int Wheel210 = 210;
|
||||
|
||||
private static readonly int[] GroupAConstants = [3, 7, 11, 13];
|
||||
|
||||
Reference in new issue
Block a user