Enumerates all prime numbers less than the specified value..
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static IEnumerable<int> Primes(
int maxValue
)
Public Shared Function Primes (
maxValue As Integer
) As IEnumerable(Of Integer)
public:
static IEnumerable<int>^ Primes(
int maxValue
)
static member Primes :
maxValue : int -> IEnumerable<int>
Parameters
- maxValue
- Type: SystemInt32
Return Value
Type:
IEnumerableInt32An
IEnumerableT of integers.
Reference