checkPrimeSync

external fun checkPrimeSync(candidate: LargeNumberLike, options: CheckPrimeOptions = definedExternally): Boolean(source)

Checks the primality of the candidate.

Since

v15.8.0

Return

true if the candidate is a prime with an error probability less than 0.25 ** options.checks.

Parameters

candidate

A possible prime encoded as a sequence of big endian octets of arbitrary length.