Class Integer
In: lib/backports/1.9.1/integer.rb
lib/backports/1.9.1/stdlib/prime.rb
lib/backports/1.8.7/integer.rb
Parent: Object

Methods

External Aliases

magnitude -> self

Public Class methods

Iterates the given block over all prime numbers.

See Primeeach for more details.

Re-composes a prime factorization and returns the product.

See Prime#int_from_prime_division for more details.

Public Instance methods

Standard in ruby 1.8.7+. See official documentation

Standard in ruby 1.8.7+. See official documentation

Standard in ruby 1.8.7+. See official documentation

Standard in ruby 1.8.7+. See official documentation

Returns true if self is a prime number, false for a composite.

Returns the factorization of self.

See Prime#prime_division for more details.

[Validate]