Photon Fusion
2.0.8
Provides a set of methods to work with prime numbers. More...
Static Public Member Functions | |
| static int | GetNextPrime (int value) |
| Gets the next prime number greater than the specified value. More... | |
| static uint | GetNextPrime (uint value) |
| Gets the next prime number greater than the specified unsigned value. More... | |
| static bool | IsPrime (int value) |
| Determines whether the specified value is a prime number. More... | |
Provides a set of methods to work with prime numbers.
|
static |
Gets the next prime number greater than the specified value.
| value | The value to find the next prime number for. |
| InvalidOperationException | Thrown when there is no larger prime number in the table. |
|
static |
Gets the next prime number greater than the specified unsigned value.
| value | The unsigned value to find the next prime number for. |
| InvalidOperationException | Thrown when there is no larger prime number in the table. |
|
static |
Determines whether the specified value is a prime number.
| value | The value to check for primality. |
true if the specified value is a prime number; otherwise, false.