Class Prime::Generator23
In: lib/backports/1.9.1/stdlib/prime.rb
Parent: PseudoPrimeGenerator

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.

Methods

new   next   rewind   succ  

Public Class methods

Public Instance methods

next()

Alias for succ

[Validate]