Switched to .IsPrime which performed best in benchmarks.

This commit is contained in:
mlemanczyk committed 2025-10-26 04:05:00 +01:00
1 parent 6e632ba03a
commit 1ed5afe689
2 files changed
+13 -7

No files matched your search

+1 -1
View File
@@ -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];