# Julia cannot add 2 big integers correctly

**URL:** <https://discourse.julialang.org/t/julia-cannot-add-2-big-integers-correctly/95774>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [March 9, 2023, 12:04am UTC](https://discourse.julialang.org/t/julia-cannot-add-2-big-integers-correctly/95774 "2023-03-09T00:04:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [March 9, 2023, 12:08am UTC](https://discourse.julialang.org/t/julia-cannot-add-2-big-integers-correctly/95774/2 "2023-03-09T00:08:04Z")

</div>

The results are the same mod 2^64. Julia’s `Int`s have overflow because `Int`s on a CPU have overflow and making your basic integer type a `BigInt` makes your language about 50x slower. For a lot more detail, see [Discussion about integer overflow](https://discourse.julialang.org/t/discussion-about-integer-overflow/69627)

---

_[View the full topic](https://discourse.julialang.org/t/julia-cannot-add-2-big-integers-correctly/95774)._
