method

next_to

ruby latest stable - Class: Prime::EratosthenesSieve

Method deprecated or moved

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

next_to(n)
public

returns the least odd prime number which is greater than n.