This is the API documentation for prime: Ruby Standard Library Documentation.
Support for the Ruby 2.4 series has ended. See here for reference.
New to Ruby? You may find these links helpful: syntax, control expressions, assignment, methods, modules + classes, and operator precedence.
This is the API documentation for prime: Ruby Standard Library Documentation.
::from_prime_division (Integer)
::new (Prime::EratosthenesGenerator)
::new (Prime::EratosthenesSieve)
::new (Prime::PseudoPrimeGenerator)
::new (Prime::TrialDivisionGenerator)
#each (Prime::PseudoPrimeGenerator)
#get_nth_prime (Prime::EratosthenesSieve)
#int_from_prime_division (Prime)
#next (Prime::EratosthenesGenerator)
#next (Prime::PseudoPrimeGenerator)
#next (Prime::TrialDivisionGenerator)
#primes (Prime::TrialDivision)
#primes_so_far (Prime::TrialDivision)
#rewind (Prime::EratosthenesGenerator)
#rewind (Prime::PseudoPrimeGenerator)
#rewind (Prime::TrialDivisionGenerator)
#size (Prime::PseudoPrimeGenerator)
#succ (Prime::EratosthenesGenerator)
#succ (Prime::PseudoPrimeGenerator)
#succ (Prime::TrialDivisionGenerator)
#upper_bound (Prime::PseudoPrimeGenerator)
#upper_bound= (Prime::PseudoPrimeGenerator)