Stack space overflow when computing primes

后端 未结 3 1356
一整个雨季
一整个雨季 2021-01-06 08:58

I\'m working my way through Real World Haskell (I\'m in chapter 4) and to practice a bit off-book I\'ve created the following program to calculate the nth prime.

<         


        
3条回答
  •  醉话见心
    2021-01-06 09:29

    You should probably check these two questions:

    1. How can I increase the stack size with runhaskell?
    2. How to avoid stack space overflows?

提交回复
热议问题