method

each

each(&block)
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.