Integer Math.Primes Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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.