algo_math

package
v0.0.0-...-e19c9e5 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APrimeGame

func APrimeGame(personAmount, StartNum int, deadTime time.Time)

APrimeGame 一些人围成一圈,然后依次说出一个素数,假设上个人说出的素数是primeNum 那么下一个说出的素数必须在(primeNum,primeNum*2)之间,超时者或者说错者drink

func CalculateOrderPrime

func CalculateOrderPrime(start, end, TH int) int

CalculateOrderPrime 如果范围内没有该次序的素数,返回-1

func IsPrime

func IsPrime(Number int) bool

func SetPrimeArr

func SetPrimeArr(maxPrime int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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