method

each

ruby latest stable - Class: Prime::OldCompatibility

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.

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.