Flowdock
method

prime?

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Prime
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.