Julia cannot add 2 big integers correctly

The results are the same mod 2^64. Julia’s Ints have overflow because Ints 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

11 Likes