[Haskell-cafe] A few questions on primes generating.

Stefan O'Rear stefanor at cox.net
Mon Aug 13 11:31:10 EDT 2007

On Mon, Aug 13, 2007 at 11:23:59PM +0800, L.Guo wrote:
> Because 10,000,000 is too large for a Int, it is always in type of Integer or some higher level data type.

In Haskell, Int always supports at least -536,870,912 to 536,870,911.

Also, large numbers don't (this is arguably a bug...) have restricted

stefan at stefans:~$ ghc -e '1000000000000000000 :: Int'
stefan at stefans:~$ 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20070813/99f976b1/attachment-0001.bin

More information about the Haskell-Cafe mailing list