# \[ANN\] euler, an arithmetic library for native integers

**URL:** <https://discuss.ocaml.org/t/ann-euler-an-arithmetic-library-for-native-integers/12482>\
**Category:** Community\
**Created:** [June 26, 2023, 4:06pm UTC](https://discuss.ocaml.org/t/ann-euler-an-arithmetic-library-for-native-integers/12482 "2023-06-26T16:06:39Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![glen](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/glen/32/4656_2.png) [@glen](https://discuss.ocaml.org/u/glen)\
**Post date:** [July 21, 2023, 5:07pm UTC](https://discuss.ocaml.org/t/ann-euler-an-arithmetic-library-for-native-integers/12482/10 "2023-07-21T17:07:12Z")

</div>

Thanks to @mseri, `euler` is now on opam! And in the meantime it has gained more functions, the most striking of which being [`Primes.prime_seq : int -> int Seq.t`](https://gmevel.github.io/euler-lib/index.html/euler/Euler/Primes/index.html#val-prime_seq) (thank @cuihtlauac for pointing me to the algorithm!) and [`Arith.smallest_root : int -> int * int`](https://github.com/gmevel/euler-lib/blob/39648c6/src/Euler.mli#L429-L433) (the latter in the next release, 3.0, not on opam yet).

Also, since I still cannot edit the first post, this is a reminder that the project has moved to GitHub: **[repo](https://github.com/gmevel/euler-lib)**, **[doc](https://gmevel.github.io/euler-lib/index.html/euler/Euler/)**. The links in my first message won’t be updated.

> [@struktured](#):
>
> I wonder if this is a useful addition to [Owl](https://github.com/owlbarn/owl), the ocaml “fat” math library.

Perhaps? I am not very familiar with Owl (ask Owl’s Benevolent Dictators For Life? 😉 ). Euler is an integer arithmetic library whereas, as I understand it, Owl is mainly a floating-point math library for scientific computing (linear algebra, differentiation, statistics and and such). I would guess that prime numbers and friends are rather remote concerns for Owl users, but perhaps Owl is interested in expanding its domains? I did spot [a small number of integer arithmetic functions in Owl](https://github.com/owlbarn/owl/blob/48434ea/src/owl/maths/owl_maths.mli#L587-L607), most of which are also found in Euler.

---

_[View the full topic](https://discuss.ocaml.org/t/ann-euler-an-arithmetic-library-for-native-integers/12482)._
