C# Class Universe.Framework.Utilities.PrimeNumberHelper

Utility class that is used to find small prime numbers and test is number prime number.
Afficher le fichier Open project: Virtual-Universe/Virtual-Universe

Méthodes publiques

Méthode Description
GetPrime ( int min ) : int

Get prime number that is equal or larger than min.

IsPrime ( int candinate ) : bool

Just basic Sieve of Eratosthenes prime number test.

Method Details

GetPrime() public static méthode

Get prime number that is equal or larger than min.
public static GetPrime ( int min ) : int
min int /// Minimal returned prime number. ///
Résultat int

IsPrime() public static méthode

Just basic Sieve of Eratosthenes prime number test.
public static IsPrime ( int candinate ) : bool
candinate int /// Number that is tested. ///
Résultat bool