elm-arithmetic icon indicating copy to clipboard operation
elm-arithmetic copied to clipboard

Arithmetic.isPrime (1000 ^ 1000)

Open pdavidow opened this issue 7 years ago • 1 comments

Arithmetic.isPrime (1000 ^ 1000) HANGS SYSTEM

pdavidow avatar Jun 08 '17 02:06 pdavidow

Maximal JS integer number (applies to Elm too) is 2^53 - 1. 1000^1000 is almost 2^9966. This won't work without unlimited precision integers like this.

Janiczek avatar Dec 04 '17 09:12 Janiczek