class

Crypto::Prime::Generator23

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

Generates all integers which are greater than 2 and are not divisible by either 2 or 3.

This is a pseudo-prime generator, suitable on checking primality of an integer by brute force method.

Constructors

new(ubound = nil)
Source

Instance methods

rewind

Rewinds the internal position for enumeration.

Source
succ

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

Source