Documentation ¶
Index ¶
- func BestWitness(maxRange, searchStart int64) (int64, float64)
- func FindNFromPrimeFactors(PrimeFactors [][]int64) big.Int
- func Search(maxRange, searchStart int64) (int64, error)
- func WitnessValue(n int64, pds int64) float64
- type ExhaustiveSearchState
- type InMemorySearchDb
- type SearchMetadata
- type SearchState
- type SearchStateDB
- type SqliteSearchDb
- type SuperabundantSearchState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BestWitness ¶
func FindNFromPrimeFactors ¶
func WitnessValue ¶
Types ¶
type ExhaustiveSearchState ¶
type ExhaustiveSearchState struct {
// contains filtered or unexported fields
}
func NewExhaustiveSearchState ¶
func NewExhaustiveSearchState(n int64) *ExhaustiveSearchState
func (*ExhaustiveSearchState) ComputeRiemannDivisorSum ¶
func (ess *ExhaustiveSearchState) ComputeRiemannDivisorSum() riemann.RiemannDivisorSum
func (*ExhaustiveSearchState) GetNextBatch ¶
func (ess *ExhaustiveSearchState) GetNextBatch(batchSize int64) []SearchState
func (*ExhaustiveSearchState) Serialize ¶
func (ess *ExhaustiveSearchState) Serialize() string
func (*ExhaustiveSearchState) Value ¶
func (ess *ExhaustiveSearchState) Value() string
type InMemorySearchDb ¶
type InMemorySearchDb struct {
// contains filtered or unexported fields
}
func (*InMemorySearchDb) Close ¶
func (imsdb *InMemorySearchDb) Close()
func (*InMemorySearchDb) Initialize ¶
func (imsdb *InMemorySearchDb) Initialize()
func (*InMemorySearchDb) InsertSearchMetadata ¶
func (imsdb *InMemorySearchDb) InsertSearchMetadata(smd SearchMetadata)
func (*InMemorySearchDb) LatestSearchState ¶
func (imsdb *InMemorySearchDb) LatestSearchState(stateType string) SearchState
type SearchMetadata ¶
type SearchMetadata struct {
// contains filtered or unexported fields
}
func (*SearchMetadata) Initialize ¶
func (smm *SearchMetadata) Initialize(stateType string, startingState, endingState SearchState, startTime, endTime time.Time)
type SearchState ¶
type SearchState interface { Serialize() string Value() string GetNextBatch(int64) []SearchState ComputeRiemannDivisorSum() riemann.RiemannDivisorSum }
func InitialSearchState ¶
func InitialSearchState(stateType string) SearchState
func NewSearchState ¶
func NewSearchState(serializedState, stateType string) SearchState
type SearchStateDB ¶
type SearchStateDB interface { Initialize() LatestSearchState(string) SearchState InsertSearchMetadata(SearchMetadata) Close() }
func SetupSearchStateDB ¶
func SetupSearchStateDB(inputDb SearchStateDB, SearchDBPath string) SearchStateDB
type SqliteSearchDb ¶
type SqliteSearchDb struct { DBPath string // contains filtered or unexported fields }
func (*SqliteSearchDb) Close ¶
func (ssdb *SqliteSearchDb) Close()
func (*SqliteSearchDb) Initialize ¶
func (ssdb *SqliteSearchDb) Initialize()
func (*SqliteSearchDb) InsertSearchMetadata ¶
func (ssdb *SqliteSearchDb) InsertSearchMetadata(smd SearchMetadata)
func (*SqliteSearchDb) LatestSearchState ¶
func (ssdb *SqliteSearchDb) LatestSearchState(stateType string) SearchState
type SuperabundantSearchState ¶
type SuperabundantSearchState struct {
// contains filtered or unexported fields
}
func NewSuperAbundantSearchState ¶
func NewSuperAbundantSearchState(level int, indexInLevel int64, value []int) *SuperabundantSearchState
func (*SuperabundantSearchState) ComputeRiemannDivisorSum ¶
func (sass *SuperabundantSearchState) ComputeRiemannDivisorSum() riemann.RiemannDivisorSum
func (*SuperabundantSearchState) GetNextBatch ¶
func (sass *SuperabundantSearchState) GetNextBatch(batchSize int64) []SearchState
func (*SuperabundantSearchState) Serialize ¶
func (sass *SuperabundantSearchState) Serialize() string
func (*SuperabundantSearchState) Value ¶
func (sass *SuperabundantSearchState) Value() string
Click to show internal directories.
Click to hide internal directories.