kliem / primecount

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Primecount Cython interface

WIP on splitting out primecount Sage spkg with its cython interface

testing:

  1. Install primecount C++ library
cd /tmp/
git clone https://github.com/kimwalisch/primecount
cd primecount
cmake . -DBUILD_SHARED_LIBS=ON
make -j
sudo make install
  1. in this repo, do
python3 setup.py install --user

python3 and

>>> import primecount
>>> primecount.pi(1000) # not working yet

About

License:GNU General Public License v3.0


Languages

Language:Python 55.5%Language:Cython 44.5%