| PrimeHelperNextPrime Method |
Gets a prime number greater than or equal to the specified value.
Namespace: DigitalRuneAssembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax public static int NextPrime(
int value
)
Public Shared Function NextPrime (
value As Integer
) As Integer
public:
static int NextPrime(
int value
)
static member NextPrime :
value : int -> int
Parameters
- value
- Type: SystemInt32
The value.
Return Value
Type:
Int32
A prime number greater than or equal to
value. Returns
value
if no suitable prime number was found within the available range (up to
MaxValue).
See Also