 | primesPrimes Method (Int32) |
Get all prime numbers under a maximum bound.
Namespace:
NumberStone
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntaxpublic static IEnumerable<int> Primes(
int max
)
Parameters
- max
- Type: SystemInt32
The maximum bound of the returned primes (exclusive).
Return Value
Type:
IEnumerableInt32All primes under
max.
RemarksIf
max is small enough (under
PrimeList's last value), the returned value will be an
IListT.
See Also