Click or drag to resize

RhoCallbackReason Enumeration

An enumeration of the reason for a callback from the MathUtils.PollardRhoFactor method.

Namespace: Orthogonal.Common.Basic
Assembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 2024-04-15 18:00 GMT+10.f27da1471008deaf16b803c17e24a5955690aef1
Syntax
C#
public enum RhoCallbackReason
Members
Member nameValueDescription
IsSmallPrime0 The argument number is itself a small prime.
IsProbablePrime1 The argument number is a probable prime according to the Miller-Rabin test with 10 small prime witnesses.
SmallFound2 A small prime factor was found.
RhoFound3 A non-trivial factor was found by the Pollard-Rho algorithm.
Progress4 A progress report callback.
FailureRestart5 The algorithm failed using the current polynomial. The n value in the x^2+n polynomial is incremented by 2 and the algorithm internally restarts.
See Also