module Prime

Included Modules

Extended Modules

Defined in:

math/prime.cr

Instance Method Summary

Instance methods inherited from module Indexable(Int32)

[](point : Point) [], []?(point : Point) []?, each_pair(&)
each_pair
each_pair
, fetch(point : Point, &) fetch

Instance methods inherited from module Enumerable(Int32)

accumulate(init : U) : Array(U) forall U
accumulate : Array(T)
accumulate(init : U, &block : U, T -> U) : Array(U) forall U
accumulate(&block : T, T -> T) : Array(T)
accumulate
, mex : T mex, mex_sorted : T mex_sorted, tally(*, default : Int32) : Hash(T, Int32) tally, unique : self
unique(&) : self
unique

Instance Method Detail

def [](start : Int, count : Int) : Array(Int32) #

[View source]
def [](range : Range) : Array(Int32) #

[View source]
def []?(start : Int, count : Int) : Array(Int32)? #

[View source]
def []?(range : Range) : Array(Int32)? #

[View source]
def each(x : Int, &) : Nil #

[View source]
def each(x : Int) #

[View source]
def includes?(x : Int) : Bool #

[View source]
def index(x : Int) : Int32? #

[View source]
def size : Int32 #

Returns the limit of size.


[View source]
def unsafe_fetch(index : Int) : Int32 #

Returns the index th prime, without doing any bounds check.


[View source]