arithmoi: Efficient basic number-theoretic functions.

[ algorithms, library, math, mit, number-theory ] [ Propose Tags ]

A library of basic functionality needed for number-theoretic calculations. The aim of this library is to provide efficient implementations of the functions. Primes and related things (totients, factorisation), powers (integer roots and tests, modular exponentiation).


[Index] [Quick Jump]


Manual Flags


Replace unsafe array operations with safe ones


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, (info)
Change log Changes
Dependencies arithmoi, array (>=0.5 && <0.6), base (>=4.9 && <5), constraints, containers (>=0.5 && <0.7), deepseq, exact-pi (>=0.5), ghc-prim (<0.7), hmatrix-gsl, integer-gmp (<1.1), integer-logarithms (>=1.0), random (>=1.0 && <1.2), semirings (>=0.4.2), transformers (>=0.4 && <0.6), vector (>=0.12) [details]
License MIT
Copyright (c) 2016-2019 Andrew Lelechenko, Carter Schonwald, 2011 Daniel Fischer
Author Andrew Lelechenko, Daniel Fischer
Maintainer Andrew Lelechenko andrew dot lelechenko at gmail dot com, Carter Schonwald carter at wellposed dot com
Revised Revision 1 made by Bodigrim at 2020-04-14T21:44:12Z
Category Math, Algorithms, Number Theory
Home page
Bug tracker
Source repo head: git clone
Uploaded by Bodigrim at 2019-10-20T18:20:26Z
Distributions Arch:, LTSHaskell:, NixOS:, Stackage:
Executables sequence-model
Downloads 38162 total (197 in the last 30 days)
Rating 2.0 (votes: 4) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-10-20 [all 1 reports]