primes

package
v0.0.0-...-3532b54 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FactorizationGenerator

func FactorizationGenerator(n int, done chan struct{}) <-chan int

FactorizationGenerator generates prime factors of n until closed

func Generator

func Generator(done chan struct{}) <-chan int

Generator generates prime numbers until closed

func IsPrime

func IsPrime(n int) bool

IsPrime returns true if n is prime

Types

This section is empty.

Jump to

Keyboard shortcuts

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