Click or drag to resize

AdvancedIntegerMathIsPrime Method

Determines whether the given integer is prime.

Namespace:  Meta.Numerics.Functions
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.0.5.0 (4.0.5.0)
Syntax
public static bool IsPrime(
	int n
)

Parameters

n
Type: SystemInt32
The integer, which must be positive.

Return Value

Type: Boolean
True if the integer is prime, otherwise false.
See Also