number

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Erathos

func Erathos(n int) []bool
Example
isPrime := Erathos(100)
fmt.Println(len(isPrime))
fmt.Println(isPrime[11]) // 11 is a prime number
fmt.Println(isPrime[57]) // 57 = 3 * 19
fmt.Println(isPrime[91]) // 91 = 7 * 13
fmt.Println(isPrime[97]) // 97 is a prime number
Output:

101
true
false
false
true

Types

This section is empty.

Jump to

Keyboard shortcuts

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