Click or drag to resize
DigitalRunePrimeHelperNextPrime Method
Gets a prime number greater than or equal to the specified value.

Namespace: DigitalRune
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public static int NextPrime(
	int value
)

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