pkg.soopen package index

brew / rank 4672

Install primecount with Homebrew, apk, apt, dnf, Nix, pacman, zypper, winget

Fast prime counting function program and C/C++ library. Version 8.7 via Homebrew; verified 2026-09-13. Also installable with debian: sudo apt install libprimecount-dev.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install primecount

local Homebrew formula metadata

Linux

Alpine Linux apkverified · 92%
sudo apk add primecount

Alpine Linux edge package indexes · primecount · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install primecount

Debian stable package indexes · primecount · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install primecount

Fedora Rawhide package metadata · primecount · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#primecount

nixpkgs package indexes · pkgs/by-name/pr/primecount/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S primecount

Arch Linux sync databases · primecount · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install primecount

openSUSE Tumbleweed package metadata · primecount · source: download.opensuse.org

Windows

Windows Package Managerverified · 92%
winget install --id Primecount.Primecount -e

Windows Package Manager source index · Primecount.Primecount · source: cdn.winget.microsoft.com

overview

Package summary

Fast prime counting function program and C/C++ library

Commands and aliases

  • primecount

history

Project history and usage

primecount is a command-line program and C/C++ library for computing the prime-counting function π(x), using optimized parallel implementations of combinatorial algorithms.

Project history

Kim Walisch developed primecount as a high-performance implementation of combinatorial prime-counting algorithms. The project supplied open-source implementations of Deleglise–Rivat and Xavier Gourdon’s algorithm, progressively adding shared-memory parallelism, distributed MPI execution, improved load balancing, and APIs for C and C++.

Release 3.0 merged MPI support into the main project in 2016. Release 5.0 introduced Xavier Gourdon’s algorithm in 2019, and 5.1 made it the default for sufficiently large inputs. Subsequent releases focused on performance, testing, portability, and packaging.

Adoption history

primecount became available through operating-system package managers including Homebrew, Arch, Debian/Ubuntu, Fedora, FreeBSD, openSUSE, Nix, APK, and WinGet. The official project reports its use in several prime-counting-function world-record computations.

How it is used

Users run primecount to calculate the number of primes less than or equal to a supplied value or call libprimecount from C/C++. Advanced options select particular algorithms, threads, status output, and verification modes; suitable builds can use OpenMP and MPI for large computations.

Why package nerds care

primecount packages research-grade number-theory algorithms as both a practical command and a reusable native library. It is notable to performance enthusiasts for its OpenMP parallelism, optional MPI distribution, 128-bit-scale computations, load balancing across many cores, and close coupling with libprimesieve.

Timeline

  • 2016: Version 3.0 merged MPI-based distributed computation into the main branch.
  • 2019: Version 5.0 introduced Xavier Gourdon’s prime-counting algorithm.
  • 2019: Version 5.1 enabled Gourdon’s algorithm by default for large inputs.
  • 2021: Version 6.2 emphasized package-manager installation and stopped providing precompiled binaries.
  • 2023: Version 7.9 substantially expanded algorithm unit testing.

Related projects

  • primesieve: Provides high-speed prime generation and is embedded or linked by primecount.
  • primecount-backup: A related mode/branch for long computations with backup and resume support.
  • Deleglise–Rivat and Gourdon algorithms: The principal advanced combinatorial methods implemented by the project.

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for primecount. Package metadata is still published here so future coverage has a stable package URL.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 2 runtime dependencies.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
primecountcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-09-19
manager version8.7
manager updated2026-09-13
local dataok
upstreamcurrent
latest detectedv8.7

https://github.com/kimwalisch/primecount

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:primecount
Version8.7
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/primecount
Homepagehttps://github.com/kimwalisch/primecount
Repositoryhttps://github.com/kimwalisch/primecount
LicenseBSD-2-Clause
Source archivehttps://github.com/kimwalisch/primecount/archive/refs/tags/v8.7.tar.gz
Last updated2026-09-13T12:20:29Z
Pulseupdated
Dependencieslibomp, primesieve
Build dependenciescmake
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameprimecount
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

libprimecount-dev 7.16+ds-1

fast prime number counter C/C++ library -- libdev

https://github.com/kimwalisch/primecount

sudo apt install libprimecount-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: primecount
  • 3 dependencies
  • 1 provides
  • 2 optional deps
  • normalized package name match
  • Matched by: Primecount
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libprimecount-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libprimecount-dev-common 7.16+ds-1

fast prime number counter C/C++ library -- headers

https://github.com/kimwalisch/primecount

sudo apt install libprimecount-dev-common
  • Section: libdevel
  • Architecture: all
  • Source Package: primecount
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Primecount
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libprimecount-dev-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libprimecount7 7.16+ds-1

fast prime number counter C/C++ library -- lib

https://github.com/kimwalisch/primecount

sudo apt install libprimecount7
  • Section: libs
  • Architecture: amd64
  • Source Package: primecount
  • 5 dependencies
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Primecount
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libprimecount7 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

primecount 7.16+ds-1

fast prime number counter C/C++ library

https://github.com/kimwalisch/primecount

sudo apt install primecount
  • Section: math
  • Architecture: all
  • 1 dependencies
  • normalized package name match
  • Matched by: Primecount
Debian stable package indexes · deb.debian.org · Debian stable package indexes: primecount from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

primecount-bin 7.16+ds-1

fast prime number counter C/C++ library -- bin

https://github.com/kimwalisch/primecount

sudo apt install primecount-bin
  • Section: math
  • Architecture: amd64
  • Source Package: primecount
  • 5 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Primecount
Debian stable package indexes · deb.debian.org · Debian stable package indexes: primecount-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

primecount-doc 7.16+ds-1

fast prime number counter C/C++ library -- doc

https://github.com/kimwalisch/primecount

sudo apt install primecount-doc
  • Section: doc
  • Architecture: all
  • Source Package: primecount
  • 1 optional deps
  • normalized package name match
  • Matched by: Primecount
Debian stable package indexes · deb.debian.org · Debian stable package indexes: primecount-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

primecount

nix profile install nixpkgs#primecount
  • normalized package name match
  • Matched by: Primecount
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/pr/primecount/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libprimecount-dev 7.10+ds-1build2

fast prime number counter C/C++ library -- libdev

https://github.com/kimwalisch/primecount

sudo apt install libprimecount-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: primecount
  • 3 dependencies
  • 1 provides
  • 2 optional deps
  • normalized package name match
  • Matched by: Primecount
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libprimecount-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libprimecount-dev-common 7.10+ds-1build2

fast prime number counter C/C++ library -- headers

https://github.com/kimwalisch/primecount

sudo apt install libprimecount-dev-common
  • Section: universe/libdevel
  • Architecture: all
  • Source Package: primecount
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Primecount
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libprimecount-dev-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libprimecount7 7.10+ds-1build2

fast prime number counter C/C++ library -- lib

https://github.com/kimwalisch/primecount

sudo apt install libprimecount7
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: primecount
  • 5 dependencies
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Primecount
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libprimecount7 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

primecount 7.10+ds-1build2

fast prime number counter C/C++ library

https://github.com/kimwalisch/primecount

sudo apt install primecount
  • Section: universe/math
  • Architecture: all
  • 1 dependencies
  • normalized package name match
  • Matched by: Primecount
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: primecount from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

primecount-bin 7.10+ds-1build2

fast prime number counter C/C++ library -- bin

https://github.com/kimwalisch/primecount

sudo apt install primecount-bin
  • Section: universe/math
  • Architecture: amd64
  • Source Package: primecount
  • 5 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Primecount
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: primecount-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

primecount-doc 7.10+ds-1build2

fast prime number counter C/C++ library -- doc

https://github.com/kimwalisch/primecount

sudo apt install primecount-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: primecount
  • 1 optional deps
  • normalized package name match
  • Matched by: Primecount
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: primecount-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

primecount 8.4-r0

Fast prime counting C/C++ library

https://github.com/kimwalisch/primecount

sudo apk add primecount
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: primecount
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Primecount
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: primecount from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

primecount-dev 8.4-r0

Fast prime counting C/C++ library (development files)

https://github.com/kimwalisch/primecount

sudo apk add primecount-dev
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: primecount
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Primecount
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: primecount-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

primecount-doc 8.4-r0

Fast prime counting C/C++ library (documentation)

https://github.com/kimwalisch/primecount

sudo apk add primecount-doc
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: primecount
  • normalized package name match
  • Matched by: Primecount
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: primecount-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation