Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
draft for 25009
Browse files Browse the repository at this point in the history
  • Loading branch information
videlec committed Mar 19, 2018
1 parent 1297aba commit 3e2d53d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/sage/libs/primecount.pxd
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# distutils: libraries = primecount
# distutils: language = c++

from libc.stdint cimport int64_t
from libcpp.string cimport string as cppstring

cdef extern from "primecount.hpp" namespace "primecount":
int64_t pi(int64_t x)
cppstring pi(const cppstring& x)
int64_t pi_deleglise_rivat(int64_t x)
int64_t pi_legendre(int64_t x)
int64_t pi_lehmer(int64_t x)
int64_t pi_lmo(int64_t x)
int64_t pi_meissel(int64_t x)
int64_t pi_primesieve(int64_t x)
int64_t nth_prime(int64_t n)
int64_t phi(int64_t x, int64_t a)

void set_num_threads(int num_threads)
int get_num_threads()



0 comments on commit 3e2d53d

Please sign in to comment.