Prime::PseudoPrimeGenerator
An implementation of PseudoPrimeGenerator which uses a prime table generated by trial division.
PseudoPrimeGenerator
# File prime.rb, line 429 def initialize @index = -1 super end
# File prime.rb, line 437 def rewind initialize end
# File prime.rb, line 434 def succ TrialDivision.instance[@index += 1] end
This page was generated for Ruby 3.0.0
Ruby-doc.org is provided by James Britt and Neurogami. Maximum R+D.
Generated with Ruby-doc Rdoc Generator 0.42.0.