primecount command not found

In this troubleshooting guide we learn how to fix primecount command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

primecount: command not found

or when using sudo you get the following error message

sudo: primecount: command not found

Solutions to primecount: command not found

How To Fix primecount: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu primecount is provided by primecount-bin package.

primecount-bin is:

primecount is a free software program and C/C++ library that counts the primes below an integer x <= 10^31 using highly optimized implementations of the combinatorial prime counting algorithms.

This package provides the command line utility primecount.

To fix this problem, we can install more using the command below.

sudo apt-get -y install primecount-bin

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install primecount-bin.

sudo apt -y install primecount-bin

Or if you have aptitude installed you can use the following command.

sudo aptitude install primecount-bin

Summary

In this tutorial we learn how to fix primecount command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.