Returns a value indicating whether an integer is
a prime number.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static bool IsPrime(
int n
)
Public Shared Function IsPrime (
n As Integer
) As Boolean
public:
static bool IsPrime(
int n
)
static member IsPrime :
n : int -> bool
Parameters
- n
- Type: SystemInt32
A 32-bit integer.
Return Value
Type:
Booleantrue if
n is
a prime number; otherwise
.
Reference