AdvancedIntegerMathIsPrime Method |
Determines whether the given integer is prime.
Namespace:
Meta.Numerics.Functions
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax 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
The integer, which must be positive.
Return Value
Type:
BooleanTrue if the integer is prime, otherwise false.
See Also