This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
|
||
|
||
|