C# Class Granados.Mono.Math.Prime.Generator.PrimeGeneratorBase

Datei anzeigen Open project: poderosaproject/poderosa

Public Methods

Method Description
GenerateNewPrime ( int bits ) : BigInteger

Protected Methods

Method Description
PostTrialDivisionTests ( BigInteger bi ) : bool

Performs primality tests on bi, assumes trial division has been done.

The speed of this method is dependent on Confidence

Method Details

GenerateNewPrime() public abstract method

public abstract GenerateNewPrime ( int bits ) : BigInteger
bits int
return BigInteger

PostTrialDivisionTests() protected method

Performs primality tests on bi, assumes trial division has been done.
The speed of this method is dependent on Confidence
protected PostTrialDivisionTests ( BigInteger bi ) : bool
bi BigInteger A BigInteger that has been subjected to and passed trial division
return bool