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

Methods
N
R
S
Class Public methods
new()
# File lib/prime.rb, line 325
def initialize
  @index = -1
  super
end
Instance Public methods
next()
Alias for: succ
rewind()
# File lib/prime.rb, line 333
def rewind
  initialize
end
succ()
Also aliased as: next
# File lib/prime.rb, line 330
def succ
  TrialDivision.instance[@index += 1]
end