Support for the Ruby 2.1 series ended on March 31 2017. See here for details.
Prime::PseudoPrimeGenerator
An implementation of PseudoPrimeGenerator which uses a prime table generated by trial division.
PseudoPrimeGenerator
# File prime.rb, line 326 def initialize @index = -1 super end
# File prime.rb, line 334 def rewind initialize end
# File prime.rb, line 331 def succ TrialDivision.instance[@index += 1] end
This page was generated for Ruby 2.1.3
Ruby-doc.org is provided by James Britt and Neurogami. Hack your world. Feed your head. Live curious.
Generated with Ruby-doc Rdoc Generator 0.44.0.