Click or drag to resize

primesPrimes Method

Namespace:  NumberStone
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static IEnumerable<int> Primes()

Return Value

Type: IEnumerableInt32
An infinite IEnumerableT of primes.
Remarks
The first primes are pre-compiled and will be returned i constant time. After that, the IEnumerableT will require O(n/log(n)) space.
See Also