Click or drag to resize

PrimeNumberMath Class

Provides helper methods for prime numbers, prime factorizations, divisor enumeration, and least common multiple calculations.
Inheritance Hierarchy
SystemObject
  Altaxo.CalcPrimeNumberMath

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public class PrimeNumberMath

The PrimeNumberMath type exposes the following members.

Constructors
 NameDescription
Public methodPrimeNumberMathInitializes a new instance of the PrimeNumberMath class
Top
Properties
 NameDescription
Public propertyStatic memberMaximumSupportedPrimeNumber Gets the maximum prime number supported by this implementation.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberGetAllDivisors(IListPrimeFactor) Gets all (positive) divisors described by the specified prime factors.
Public methodStatic memberGetAllDivisors(Int64) Gets all (positive) divisors of x.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetNeighbouringDivisors Gets the divisors of nominator nearest to searchCenter.
Public methodStatic memberGetNumberFromPrimeFactors Reconstructs a number from its prime factorization.
Public methodStatic memberGetPrimeNumbersExcludingOneUpTo Enumerates prime numbers up to and including maxNumber.
Public methodStatic memberGetPrimeNumbersIncludingOneUpTo Enumerates prime numbers up to and including maxNumber, additionally yielding 1.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberIsPrime Determines whether x is a prime number.
Public methodStatic memberLeastCommonMultiple Gets the least common multiple of the two numbers x and y.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberPrimeFactorization Computes the prime factorization of x.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also