This is the API documentation for prime: Ruby Standard Library Documentation.
Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more
This is the API documentation for prime: Ruby Standard Library Documentation.
::from_prime_division (Integer)
::new (Prime::EratosthenesGenerator)
::new (Prime::PseudoPrimeGenerator)
::new (Prime::TrialDivisionGenerator)
#each (Prime::OldCompatibility)
#each (Prime::PseudoPrimeGenerator)
#int_from_prime_division (Prime)
#next (Prime::EratosthenesGenerator)
#next (Prime::OldCompatibility)
#next (Prime::PseudoPrimeGenerator)
#next (Prime::TrialDivisionGenerator)
#next_to (Prime::EratosthenesSieve)
#primes (Prime::TrialDivision)
#primes_so_far (Prime::TrialDivision)
#rewind (Prime::EratosthenesGenerator)
#rewind (Prime::PseudoPrimeGenerator)
#rewind (Prime::TrialDivisionGenerator)
#succ (Prime::EratosthenesGenerator)
#succ (Prime::OldCompatibility)
#succ (Prime::PseudoPrimeGenerator)
#succ (Prime::TrialDivisionGenerator)
#upper_bound (Prime::PseudoPrimeGenerator)