AdvancedIntegerMathIsPrime Method
Determines whether the given integer is prime.
Namespace: Meta.Numerics.FunctionsAssembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
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
- n Int32
- The integer, which must be positive.
BooleanTrue if the integer is prime, otherwise false.