<PackageReference Include="System.Linq.AsyncEnumerable" Version="11.0.0-rc.3.26522.148" />

System.Collections.HashHelpers

static class HashHelpers
public const uint HashCollisionThreshold = 100

public const int HashPrime = 101

public const int MaxPrimeArrayLength = 2147483587

public static int ExpandPrime(int oldSize)

public static uint FastMod(uint value, uint divisor, ulong multiplier)

Performs a mod operation using the multiplier pre-computed with GetFastModMultiplier.

public static ulong GetFastModMultiplier(uint divisor)

Returns approximate reciprocal of the divisor: ceil(2**64 / divisor).

public static int GetPrime(int min)

public static bool IsPrime(int candidate)