method
each
ruby latest stable - Class:
Prime::OldCompatibility
each()public
Overwrites Prime#each.
Iterates the given block over all prime numbers. Note that enumeration starts from the current position of internal pointer, not rewound.