Skip to main content

Cython interface for C++ primecount library

Project description

Primecount Cython interface

This is a Cython interface to the C++ library primecount.

We have split out primecount SageMath spkg with its Cython interface.

Quick installation and testing:

  1. Install primecount C++ library
cd /tmp/
git clone
cd primecount
make -j
sudo make install
sudo ldconfig # linux only
  1. in this repo, do
python3 install --user

python3 and

>>> import primecountpy as primecount
>>> primecount.pi(1000)

More details on installation without root (sudo) access, and testing with pytest, may be found in the manual.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

primecountpy-0.1.0.tar.gz (16.1 kB view hashes)

Uploaded source

Built Distributions

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page