Incremental primality sieve based on priority queues, described in the paper The Genuine Sieve of Eratosthenes by Melissa O'Neill, Journal of Functional Programming, 19(1), pp95-106, Jan 2009.
Code is unchanged, other than packaging, from that written by Melissa O'Neill. This version contains optimizations not described in the paper, primarily improving memory consumption.
The first argument specifies which number to start at,
the second argument is a wheel of deltas for skipping composites.
primes could be defined as
2 : 3 : sieve 5 (cycle [2,4])