An abstract class for enumerating pseudo-prime numbers.
Concrete subclasses should override succ, next, rewind.
upper_bound() Instance Public methods
succ() Instance Public methods returns the next pseudo-prime number, and move
with_object(obj) Instance Public methods see Enumerator#with_object
upper_bound=(ubound) Instance Public methods
next() Instance Public methods alias of succ.
rewind() Instance Public methods Rewinds the internal position for enumeration
each(&block) Instance Public methods Iterates the given block for each prime
new(ubound = nil) Class Public methods