From 6c72e72ae80ac3ab8b810c0df187df52c1ecbebe Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Mon, 13 May 2024 20:52:12 +0000 Subject: gnu: Add primecount. * gnu/packages/maths.scm (primecount): New variable. Change-Id: I03692a1be46cc4d0f3eabe95a3f76719a5c63d83 Signed-off-by: Sharlatan Hellseher --- gnu/packages/maths.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 8a00cc83c6..94187be6b7 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -3682,6 +3682,31 @@ (define-public ppl functions.") (license license:gpl3+))) +(define-public primecount + (package + (name "primecount") + (version "7.13") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kimwalisch/primecount") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0v3zm6mw4fb6a33zi542x94w1nd54rvn7r8dav670jm9dn60jfsn")))) + (build-system cmake-build-system) + (arguments + (list #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON" + "-DBUILD_STATIC_LIBS=OFF" + "-DBUILD_TESTS=ON"))) + (home-page "https://github.com/kimwalisch/primecount") + (synopsis "Fast prime counting function implementations") + (description "@code{primecount} is a command-line program and C/C++ +library that counts the number of primes ≤ x (maximum 1031) using highly +optimized implementations of the combinatorial prime counting algorithms.") + (license license:bsd-2))) + (define-public primesieve (package (name "primesieve") -- cgit v1.2.3