New comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/pull/34516#issuecomment-998762725 Comment: @leahneukirchen simple packages, needed for sagemath, but they just work on their own and are fast: ``` $ time primesieve $((10**10)) Sieve size = 128 KiB Threads = 8 100% Seconds: 0.296 Primes: 455052511 real 0m0.298s user 0m1.925s sys 0m0.005s $ time primecount $((10**10)) 455052511 real 0m0.004s user 0m0.005s sys 0m0.001s $ time primecount $((10**16)) 279238341033925 real 0m1.236s user 0m8.368s sys 0m0.022s ``` Note: primesieve actually finds all primes, primecount just computes the number.