AdvancedIntegerMathIsPrime Method

Determines whether the given integer is prime.

Definition

Namespace: Meta.Numerics.Functions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static bool IsPrime(
	int n
)

Parameters

n  Int32
The integer, which must be positive.

Return Value

Boolean
True if the integer is prime, otherwise false.

See Also