module Prime
Included Modules
Extended Modules
Defined in:
math/prime.crInstance Method Summary
- #[](start : Int, count : Int) : Array(Int32)
- #[](range : Range) : Array(Int32)
- #[]?(start : Int, count : Int) : Array(Int32)?
- #[]?(range : Range) : Array(Int32)?
- #each(x : Int, &) : Nil
- #each(x : Int)
- #includes?(x : Int) : Bool
- #index(x : Int) : Int32?
-
#size : Int32
Returns the limit of size.
-
#unsafe_fetch(index : Int) : Int32
Returns the index th prime, without doing any bounds check.
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 Uaccumulate : 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
Returns the index th prime, without doing any bounds check.