<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Finding primes with Erlang and Clojure</title>
	<link>http://bigdingus.com/2008/07/01/finding-primes-with-erlang-and-clojure/</link>
	<description>A lot of the time I hear ducks</description>
	<pubDate>Sun, 05 Feb 2012 01:47:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: e</title>
		<link>http://bigdingus.com/2008/07/01/finding-primes-with-erlang-and-clojure/#comment-4792</link>
		<author>e</author>
		<pubDate>Wed, 13 May 2009 10:54:31 +0000</pubDate>
		<guid>http://bigdingus.com/2008/07/01/finding-primes-with-erlang-and-clojure/#comment-4792</guid>
		<description>would this functional heap have been useful? http://code.google.com/p/jc-pheap/</description>
		<content:encoded><![CDATA[<p>would this functional heap have been useful? <a href="http://code.google.com/p/jc-pheap/" rel="nofollow">http://code.google.com/p/jc-pheap/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cybil</title>
		<link>http://bigdingus.com/2008/07/01/finding-primes-with-erlang-and-clojure/#comment-3801</link>
		<author>Cybil</author>
		<pubDate>Tue, 10 Feb 2009 12:35:31 +0000</pubDate>
		<guid>http://bigdingus.com/2008/07/01/finding-primes-with-erlang-and-clojure/#comment-3801</guid>
		<description>&#62; since prime numbers are pretty uniformly distributed along the natural number line

Terribly wrong. The prime density decreases towards infinity. The asymptotic propability of the number N to be prime is 1 / ln(N). See http://en.wikipedia.org/wiki/Prime_number_theorem for example.</description>
		<content:encoded><![CDATA[<p>&gt; since prime numbers are pretty uniformly distributed along the natural number line</p>
<p>Terribly wrong. The prime density decreases towards infinity. The asymptotic propability of the number N to be prime is 1 / ln(N). See <a href="http://en.wikipedia.org/wiki/Prime_number_theorem" rel="nofollow">http://en.wikipedia.org/wiki/Prime_number_theorem</a> for example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The BigDingus Blogger</title>
		<link>http://bigdingus.com/2008/07/01/finding-primes-with-erlang-and-clojure/#comment-1194</link>
		<author>The BigDingus Blogger</author>
		<pubDate>Wed, 02 Jul 2008 19:54:20 +0000</pubDate>
		<guid>http://bigdingus.com/2008/07/01/finding-primes-with-erlang-and-clojure/#comment-1194</guid>
		<description>Sorry about the blog software. I'm too lazy to deal with Wordpress myself, so this is just the default setup 1&#038;1 provides.

Anyway I think we do understand the sieve the same way. In fact your comment makes me realize that my multiplies are unnecessary, so I'll change them to adds.</description>
		<content:encoded><![CDATA[<p>Sorry about the blog software. I&#8217;m too lazy to deal with Wordpress myself, so this is just the default setup 1&#038;1 provides.</p>
<p>Anyway I think we do understand the sieve the same way. In fact your comment makes me realize that my multiplies are unnecessary, so I&#8217;ll change them to adds.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qebab</title>
		<link>http://bigdingus.com/2008/07/01/finding-primes-with-erlang-and-clojure/#comment-1193</link>
		<author>qebab</author>
		<pubDate>Wed, 02 Jul 2008 18:23:10 +0000</pubDate>
		<guid>http://bigdingus.com/2008/07/01/finding-primes-with-erlang-and-clojure/#comment-1193</guid>
		<description>Right, so I didn't think about this whole html thing, and your blog ate my code, and most of my post. I'll see if I can be bothered to write it up again, at some point.</description>
		<content:encoded><![CDATA[<p>Right, so I didn&#8217;t think about this whole html thing, and your blog ate my code, and most of my post. I&#8217;ll see if I can be bothered to write it up again, at some point.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qebab</title>
		<link>http://bigdingus.com/2008/07/01/finding-primes-with-erlang-and-clojure/#comment-1192</link>
		<author>qebab</author>
		<pubDate>Wed, 02 Jul 2008 18:21:30 +0000</pubDate>
		<guid>http://bigdingus.com/2008/07/01/finding-primes-with-erlang-and-clojure/#comment-1192</guid>
		<description>The most trivial, but still efficient prime-sieve I know, is the sieve of Eratosthenes (indeed the one described in the paper). I am not familiar enough with Erlang (yet) to see if you have understood it the same way as have I, but I'll provide short python-style pseudocode for it:

candidates = [2..lim]
i = 0
while i 

This is a very computer-sciency algorithm, it is so easy to understand, and it uses nothing more complex than addition, really (except in the condition for the outer while-loop). I think it may be my favorite algorithm of all time.</description>
		<content:encoded><![CDATA[<p>The most trivial, but still efficient prime-sieve I know, is the sieve of Eratosthenes (indeed the one described in the paper). I am not familiar enough with Erlang (yet) to see if you have understood it the same way as have I, but I&#8217;ll provide short python-style pseudocode for it:</p>
<p>candidates = [2..lim]<br />
i = 0<br />
while i </p>
<p>This is a very computer-sciency algorithm, it is so easy to understand, and it uses nothing more complex than addition, really (except in the condition for the outer while-loop). I think it may be my favorite algorithm of all time.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

