macOS
brew install primecountlocal Homebrew formula metadata
安装
brew install primecountlocal Homebrew formula metadata
sudo apk add primecountAlpine Linux edge package indexes · primecount · 来源: dl-cdn.alpinelinux.org
sudo apt install primecountDebian stable package indexes · primecount · 来源: deb.debian.org
sudo dnf install primecountFedora Rawhide package metadata · primecount · 来源: dl.fedoraproject.org
nix profile install nixpkgs#primecountnixpkgs package indexes · pkgs/by-name/pr/primecount/package.nix · 来源: api.github.com
sudo pacman -S primecountArch Linux sync databases · primecount · 来源: geo.mirror.pkgbuild.com
sudo zypper install primecountopenSUSE Tumbleweed package metadata · primecount · 来源: download.opensuse.org
winget install --id Primecount.Primecount -eWindows Package Manager source index · Primecount.Primecount · 来源: cdn.winget.microsoft.com
概览
Fast prime counting function program and C/C++ library
历史
primecount is a command-line program and C/C++ library for computing the prime-counting function π(x), using optimized parallel implementations of combinatorial algorithms.
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.
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.
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.
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.
安全态势
没有找到 primecount 的匹配本地密钥处理 manifest。软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
primecount | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/kimwalisch/primecount
安装元数据
| 软件包键 | brew:primecount |
|---|---|
| 版本 | 8.7 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/primecount |
| 主页 | https://github.com/kimwalisch/primecount |
| 仓库 | https://github.com/kimwalisch/primecount |
| 许可证 | BSD-2-Clause |
| 源码归档 | https://github.com/kimwalisch/primecount/archive/refs/tags/v8.7.tar.gz |
| 最后更新 | 2026-09-13T12:20:29Z |
| Pulse | updated |
| 依赖 | libomp, primesieve |
| 构建依赖 | cmake |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | primecount |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libprimecount-dev 7.16+ds-1
fast prime number counter C/C++ library -- libdev
https://github.com/kimwalisch/primecount
sudo apt install libprimecount-devlibprimecount-dev-common 7.16+ds-1
fast prime number counter C/C++ library -- headers
https://github.com/kimwalisch/primecount
sudo apt install libprimecount-dev-commonlibprimecount7 7.16+ds-1
fast prime number counter C/C++ library -- lib
https://github.com/kimwalisch/primecount
sudo apt install libprimecount7primecount 7.16+ds-1
fast prime number counter C/C++ library
https://github.com/kimwalisch/primecount
sudo apt install primecountprimecount-bin 7.16+ds-1
fast prime number counter C/C++ library -- bin
https://github.com/kimwalisch/primecount
sudo apt install primecount-binprimecount-doc 7.16+ds-1
fast prime number counter C/C++ library -- doc
https://github.com/kimwalisch/primecount
sudo apt install primecount-docprimecount
nix profile install nixpkgs#primecountlibprimecount-dev 7.10+ds-1build2
fast prime number counter C/C++ library -- libdev
https://github.com/kimwalisch/primecount
sudo apt install libprimecount-devlibprimecount-dev-common 7.10+ds-1build2
fast prime number counter C/C++ library -- headers
https://github.com/kimwalisch/primecount
sudo apt install libprimecount-dev-commonlibprimecount7 7.10+ds-1build2
fast prime number counter C/C++ library -- lib
https://github.com/kimwalisch/primecount
sudo apt install libprimecount7primecount 7.10+ds-1build2
fast prime number counter C/C++ library
https://github.com/kimwalisch/primecount
sudo apt install primecountprimecount-bin 7.10+ds-1build2
fast prime number counter C/C++ library -- bin
https://github.com/kimwalisch/primecount
sudo apt install primecount-binprimecount-doc 7.10+ds-1build2
fast prime number counter C/C++ library -- doc
https://github.com/kimwalisch/primecount
sudo apt install primecount-docprimecount 8.4-r0
Fast prime counting C/C++ library
https://github.com/kimwalisch/primecount
sudo apk add primecountprimecount-dev 8.4-r0
Fast prime counting C/C++ library (development files)
https://github.com/kimwalisch/primecount
sudo apk add primecount-devprimecount-doc 8.4-r0
Fast prime counting C/C++ library (documentation)
https://github.com/kimwalisch/primecount
sudo apk add primecount-doc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.