Class

Holds Integer values. You cannot add a singleton method to an Integer object, any attempt to do so will raise a TypeError.

Constants

The version of loaded GMP.

Class Methods

Iterates the given block over all prime numbers.

See Prime#each for more details.

Re-composes a prime factorization and returns the product.

See Prime#int_from_prime_division for more details.

Returns the integer square root of the non-negative integer n, i.e. the largest non-negative integer less than or equal to the square root of n.

Integer.sqrt(0)        #=> 0
Integer.sqrt(1)        #=> 1
Integer.