Primes.jl
Primes.jl copied to clipboard
`nextprime` not working well with BitIntegers
julia> nextprime(Int256(2)^186)
ERROR: InexactError: trunc(Int256, 776096500322445173294029667436835618525483108491085984157372499045210168189608446442688888866620606620268602202040084040440848044843)
We're special casing Int128
to use the BigInt method. Perhaps we should do that more generally for larger integer types?