3 ms·
Try wrapping each of these in BigInt. Example: factorial(BigInt(1000)) Julia defaults to what is fast on your machine. If you want to use BigInt you can do so
by simulate 13y ago
Try wrapping each of these in BigInt. Example: factorial(BigInt(1000))
Julia defaults to what is fast on your machine. If you want to use BigInt you can do so but it doesn't do so by default.
You can also use 128bit integers in Julia. Example:
rand(Int128, 10)