Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Oct 4, 2025. It is now read-only.

hearot/primecount-python

Open more actions menu

Repository files navigation

primecount

A Python wrapper for primecount.

Documentation

This package follows the documentation provided by the C API reference, generating three methods: primecount.nth_prime, primecount.pi and primecount.phi.

Installation

In the first place, you have to download the source code of the library and build it. Make sure you have installed cmake, git and make. You might have to make use of sudo if make install ever fails.

git clone https://github.com/kimwalisch/primecount
cd primecount
cmake . -DBUILD_SHARED_LIBS=ON
make -j
make install

After having installed the library, it's time to install the Python wrapper by cloning this repository. Make sure you have installed pip and that primecount is reachable as a shared library using a compiler.

git clone https://github.com/hearot/primecount
cd primecount
pip install .

Instead of the last command, you can type python setup.py install as well.

Commit messages

See Conventional Commits.

Contributing

See CONTRIBUTING.md.

Versioning

See PEP 440.

Copyright & License

Morty Proxy This is a proxified and sanitized view of the page, visit original site.