PrimesHasAnySmallFactors Method

A fast check for small divisors, up to some implementation-specific limit.

Definition

Namespace: Org.BouncyCastle.Math
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public static bool HasAnySmallFactors(
	BigInteger candidate
)

Parameters

candidate  BigInteger
The BigInteger instance to test for division by small factors.

Return Value

Boolean
true if the candidate is found to have any small factors, false otherwise.

See Also