Const
An infinite sequence of prime numbers. Uses the Sieve of Eratosthenes algorithm with memoization for efficiency.
Sequential prime numbers starting from 2
G.pipe( G.primes(), G.take(5), G.array) // [2, 3, 5, 7, 11] Copy
G.pipe( G.primes(), G.take(5), G.array) // [2, 3, 5, 7, 11]
An infinite sequence of prime numbers. Uses the Sieve of Eratosthenes algorithm with memoization for efficiency.