r/purescript • u/ulius • Jun 27 '18
Big Int Problem
Hello,
I'm new to purescript and trying to study by solving eulers project exercises. and with 3rd had a problem:
Integer value 600851475143 is out of range for the JavaScript backend. Acceptable values fall within the range -2147483648 to 2147483647 (inclusive).
Maybe someone can help me with that,
Thanks :)
3
Upvotes
View all comments
Show parent comment
1
u/ulius Jun 27 '18
Full error looks like this:
> solve 600851475143Error found:in module $PSCIat line 1, column 7 - line 1, column 7Integer value 600851475143 is out of range for the JavaScript backend.Acceptable values fall within the range -2147483648 to 2147483647 (inclusive).See https://github.com/purescript/documentation/blob/master/errors/IntOutOfRange.md for more information, or to contribute content related to this error.code
https://pastebin.com/3pF7ww1t