class

Crypto::Prime::EratosthenesGenerator

Inherits Crypto::Prime::PseudoPrimeGenerator / Iterator / Enumerable / Enumerable / Reference / Object

An implementation of PseudoPrimeGenerator.

Uses EratosthenesSieve.

Constructors

Instance methods

rewind

Rewinds the internal position for enumeration.

Source
succ

returns the next pseudo-prime number, and move the internal position forward.

Source