Integer Math.Primes Method
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Primes() | Enumerates all prime numbers less than MaxValue. |
Primes( | Enumerates all prime numbers less than the specified value.. |
Primes
Enumerates all prime numbers less than MaxValue.
public static IEnumerable<int> Primes()
Return Value
IEnumerable<Int32>An IEnumerable<T> of integers.
Primes(Int32)
Enumerates all prime numbers less than the specified value..
public static IEnumerable<int> Primes(
int maxValue
)
Parameters
- maxValue Int32
Return Value
IEnumerable<Int32>An IEnumerable<T> of integers.