When generating primes up to 1e12, the process exits with an unusual error code. I imagine it's due to my system not having enough memory, but I thought primesieve might be able to deal with this situation.
pyprimesieve.primes(5245028923, int(1e12))
pyprimesieve immediately sends this code, which I can't really make sense of after a cursory glance at the source of this library and primesieve. It would be nice to know what's going on, but I fear I'll have to use primesieve itself to debug the error as it is now.