class Generator::TrialDivision

Overview

An implementation of +PseudoPrimeGenerator+ which uses a prime table generated by trial division.

Defined in:

generators/trial_division.cr

Constructors

Instance Method Summary

Instance methods inherited from class Generator::PseudoPrime

each
each(&)
each
, next next, rewind rewind, size size, succ succ, upper_bound : Int32? upper_bound, upper_bound=(ubound : Int32 | Nil) upper_bound=, with_index(offset = 0)
with_index(offset = 0, &)
with_index
, with_object(obj)
with_object(obj, &)
with_object

Constructor methods inherited from class Generator::PseudoPrime

new(ubound : Int32 | Nil = nil) new

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def next #

[View source]
def rewind #

[View source]
def succ #

[View source]