Module Prime::OldCompatibility
In: lib/backports/1.9.1/stdlib/prime.rb

Provides a Prime object with compatibility to Ruby 1.8 when instantiated via Prime.new.

Methods

each   next   succ  

Public Instance methods

Overwrites Prime#each.

Iterates the given block over all prime numbers. Note that enumeration starts from the current position of internal pointer, not rewound.

next()

Alias for succ

Returns the next prime number and forwards internal pointer.

[Validate]