An implementation of PseudoPrimeGenerator.

Uses EratosthenesSieve.

Methods
N
R
S
Class Public methods
new()
# File lib/prime.rb, line 309
def initialize
  @last_prime_index = -1
  super
end
Instance Public methods
next()
Alias for: succ
rewind()
# File lib/prime.rb, line 318
def rewind
  initialize
end
succ()
Also aliased as: next
# File lib/prime.rb, line 314
def succ
  @last_prime_index += 1
  EratosthenesSieve.instance.get_nth_prime(@last_prime_index)
end