Big Integer.Is Pseudo Prime Method
Uses the Rabin-Miller test to determine if a number is pseudo-prime.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public bool IsPseudoPrime(
BigInteger baseValue
)
Parameters
- baseValue BigInteger
- The number base used to perform the test.
Return Value
BooleanRemarks
The Rabin-Miller test is a non-deterministic primality test. A number that fails the test is guaranteed to be composite. A number that passes the test may or may not actually be prime.