IntegerMath.Primes Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

Primes() Enumerates all prime numbers less than MaxValue.
Primes(Int32) Enumerates all prime numbers less than the specified value..

Primes

Enumerates all prime numbers less than MaxValue.
C#
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..
C#
public static IEnumerable<int> Primes(
	int maxValue
)

Parameters

maxValue  Int32
 

Return Value

IEnumerable<Int32>
An IEnumerable<T> of integers.

See Also