Prime |
public static bool IsPrime( long x )
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | Thrown if x is less than or equal to 0. |
| NotImplementedException | Thrown if primality cannot be decided because the number requires trial division by primes greater than MaximumSupportedPrimeNumber. |