prime?(value, generator = Prime::Generator23.new) public

Returns true if value is a prime number, else returns false.

Parameters

value

an arbitrary integer to be checked.

generator

optional. A pseudo-prime generator.

Show source
Register or log in to add new notes.