Prime::PseudoPrimeGenerator
An implementation of PseudoPrimeGenerator which uses a prime table generated by trial division.
PseudoPrimeGenerator
# File prime.rb, line 327 def initialize @index = -1 super end
# File prime.rb, line 335 def rewind initialize end
# File prime.rb, line 332 def succ TrialDivision.instance[@index += 1] end
This page was generated for Ruby 2.3.4
Ruby-doc.org is a service of James Britt and Neurogami, an application development company in Scottsdale, AZ.
Generated with Ruby-doc Rdoc Generator 0.36.0.