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

Returns true if value is prime, false for a composite.

Parameters

value

an arbitrary integer to be checked.

generator

optional. A pseudo-prime generator.

Show source
Register or log in to add new notes.