eratosthenes

package
v0.0.0-...-6442850 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SegmentSize = 1024
)

Variables

This section is empty.

Functions

func SimpleSieve

func SimpleSieve(limit uint64) uint64

func TakeLargestPrime128Bits

func TakeLargestPrime128Bits(start *big.Int, end *big.Int) (*big.Int, error)

func TakeLargestPrimeNumber

func TakeLargestPrimeNumber(upperBound string) (string, error)

func TakeLargestPrimeNumber64Bit

func TakeLargestPrimeNumber64Bit(start uint64, end uint64) (uint64, error)

Take prime number less than or equal to 64 bit width.

Types

type Bucket

type Bucket struct {
	// contains filtered or unexported fields
}

Bucket to use any other value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL