Click or drag to resize

MathUtils Methods

The MathUtils type exposes the following members.

Methods
 NameDescription
Public methodStatic memberFactorNaive A simple naive factoring method that uses division by the sequence 2,3,6n±1 up to the square root
Public methodStatic memberIsMillerRabinPrime Borrowed from rosettacode.org for some experiments. For more information see Miller-Rabin primality test.
Public methodStatic memberPollardRhoFactor Attempts to fully factor an integer by looking for small prime factors combined with the Pollard Rho Algorithm.
Public methodStatic memberRhoFactor Attempts to find a factor of a number, searching for a small factor first before using the Pollard Rho algorithm.
Top
See Also