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.
|
public static GetPrime ( int min ) : int | ||
min | int | /// Minimal returned prime number. /// |
Résultat | int |
public static IsPrime ( int candinate ) : bool | ||
candinate | int | /// Number that is tested. /// |
Résultat | bool |