IntegerMath Methods

Methods

BinomialCoefficients Enumerates over the binomial coefficients of a specified degree.
Divisors(Int32) Returns the divisors of an integer.
Divisors(Int64) Returns the divisors of an integer.
Factor(Int32) Returns the prime factors of an integer.
Factor(Int64) Returns the prime factors of an integer.
GreatestCommonDivisor(BigInteger, BigInteger) Returns the greatest common divisor of two integers.
GreatestCommonDivisor(Decimal, Decimal) Returns the greatest common divisor of two integers.
GreatestCommonDivisor(Int16, Int16) Returns the greatest common divisor of two integers.
GreatestCommonDivisor(Int32, Int32) Returns the greatest common divisor of two integers.
GreatestCommonDivisor(Int64, Int64) Returns the greatest common divisor of two integers.
GreatestCommonDivisor(BigInteger, BigInteger, BigInteger, BigInteger) Returns the greatest common divisor of two integers using the extended Euclidean algorithm.
GreatestCommonDivisor(Decimal, Decimal, Decimal, Decimal) Returns the greatest common divisor of two integers using the extended Euclidean algorithm.
GreatestCommonDivisor(Int16, Int16, Int16, Int16) Returns the greatest common divisor of two integers using the extended Euclidean algorithm.
GreatestCommonDivisor(Int32, Int32, Int32, Int32) Returns the greatest common divisor of two integers using the extended Euclidean algorithm.
GreatestCommonDivisor(Int64, Int64, Int64, Int64) Returns the greatest common divisor of two integers using the extended Euclidean algorithm.
IsEven(BigInteger) Returns whether an integer is even.
IsEven(Decimal) Returns whether an integer is even.
IsEven(Int16) Returns whether an integer is even.
IsEven(Int32) Returns whether an integer is even.
IsEven(Int64) Returns whether an integer is even.
IsOdd(BigInteger) Returns whether an integer is odd.
IsOdd(Decimal) Returns whether an integer is odd.
IsOdd(Int16) Returns whether an integer is odd.
IsOdd(Int32) Returns whether an integer is odd.
IsOdd(Int64) Returns whether an integer is odd.
IsPowerOfTwo(BigInteger) Returns whether an integer is a power of two.
IsPowerOfTwo(Decimal) Returns whether an integer is a power of two.
IsPowerOfTwo(Int16) Returns whether an integer is a power of two.
IsPowerOfTwo(Int32) Returns whether an integer is a power of two.
IsPowerOfTwo(Int64) Returns whether a long integer is a power of two.
IsPowerOfTwo(UInt32) Returns whether an unsigned integer is a power of two.
IsPowerOfTwo(UInt64) Returns whether an unsigned long integer is a power of two.
IsPrime(Int16) Returns whether an integer is a prime number.
IsPrime(Int32) Returns whether an integer is a prime number.
LeastCommonMultiple(BigInteger, BigInteger) Returns the least common multiple of two integers.
LeastCommonMultiple(Decimal, Decimal) Returns the least common multiple of two integers.
LeastCommonMultiple(Int16, Int16) Returns the least common multiple of two integers.
LeastCommonMultiple(Int32, Int32) Returns the least common multiple of two integers.
LeastCommonMultiple(Int64, Int64) Returns the least common multiple of two integers.
MinusOnePow Returns -1 raised to the specified power.
NextPrime Returns the first prime number following the given number.
PreviousPrime Returns the first prime number preceding the given number.
Primes() Enumerates all prime numbers less than MaxValue.
Primes(Int32) Enumerates all prime numbers less than the specified value..

See Also