Concurrent Prime Generator

后端 未结 10 699
终归单人心
终归单人心 2020-12-20 20:32

I\'m going through the problems on projecteuler.net to learn how to program in Erlang, and I am having the hardest time creating a prime generator that can create all of the

10条回答
  •  独厮守ぢ
    2020-12-20 21:09

    The Sieve of Eratosthenes is fairly easy to implement but -- as you have discovered -- not the most efficient. Have you tried the Sieve of Atkin?

    Sieve of Atkin @ Wikipedia

提交回复
热议问题