Hi All:
I am reading http://www.haskell.org/haskellwiki/Prime_numbers
The code in sector "1 Bitwise prime sieve".
I have 3 questions about it.
1) In function go, what does the number 46340 mean ? Is it sqrt(MAX_LONG) ?
2) We have this type definition :
pureSieve :: Int -> Int
Why there is no error (type mismatch) of this call in func main :
pureSieve 10000000
3) In main again, what does expression [| x |] mean ? Why this cannot be
execute in GHCi ?
Thanks for any advice.
Regards
--------------
L.Guo
2007-08-13
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe