<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The Sieve of Atkin in C#</title>
	<atom:link href="http://www.geekality.net/2009/10/19/the-sieve-of-atkin-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geekality.net/2009/10/19/the-sieve-of-atkin-in-c/</link>
	<description>With a hint of Social Ineptitude</description>
	<lastBuildDate>Fri, 09 Jul 2010 20:04:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Mark Lawrence</title>
		<link>http://www.geekality.net/2009/10/19/the-sieve-of-atkin-in-c/#comment-468</link>
		<dc:creator>Mark Lawrence</dc:creator>
		<pubDate>Sat, 22 May 2010 23:26:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekality.net/?p=674#comment-468</guid>
		<description>Ok I don&#039;t know c# that well, but in your nested x/y for loops you compute both x * x and y * y three times, and 3 * x * x twice, could you compute these once only by using temporary variables?  The third computation of n is done, then you check that x &gt; y, why not perform this check first, then do the computation?</description>
		<content:encoded><![CDATA[<p>Ok I don&#8217;t know c# that well, but in your nested x/y for loops you compute both x * x and y * y three times, and 3 * x * x twice, could you compute these once only by using temporary variables?  The third computation of n is done, then you check that x &gt; y, why not perform this check first, then do the computation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img src='http://www.geekality.net/wp-content/plugins/rpx/images/openid.png'/> Torleif</title>
		<link>http://www.geekality.net/2009/10/19/the-sieve-of-atkin-in-c/#comment-216</link>
		<dc:creator><img src='http://www.geekality.net/wp-content/plugins/rpx/images/openid.png'/> Torleif</dc:creator>
		<pubDate>Wed, 17 Mar 2010 18:16:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekality.net/?p=674#comment-216</guid>
		<description>According to my unit test it seems to work at least, so thanks! :)</description>
		<content:encoded><![CDATA[<p>According to my unit test it seems to work at least, so thanks! <img src='http://www.geekality.net/wp-includes/images/blank.gif' alt=':)' title=':)' class='wp-smiley smiley-1' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://www.geekality.net/2009/10/19/the-sieve-of-atkin-in-c/#comment-180</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Sat, 20 Feb 2010 21:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.geekality.net/?p=674#comment-180</guid>
		<description>In the line

      [cc lang=&quot;csharp&quot;]for (ulong n = 5; n &lt;= limit; n++)[/cc]

could you use 

      [cc lang=&quot;csharp&quot;]for (ulong n = 5; n &lt;= limit; n += 2)[/cc]

so you aren&#039;t checking to see if even numbers are primes?</description>
		<content:encoded><![CDATA[<p>In the line</p>
<div class="codecolorer-container csharp default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0600FF; font-weight: bold;">for</span> <span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">ulong</span> n <span style="color: #008000;">=</span> <span style="color: #FF0000;">5</span><span style="color: #008000;">;</span> n <span style="color: #008000;">&amp;</span>lt<span style="color: #008000;">;=</span> limit<span style="color: #008000;">;</span> n<span style="color: #008000;">++</span><span style="color: #008000;">&#41;</span></div></div>
<p>could you use</p>
<div class="codecolorer-container csharp default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0600FF; font-weight: bold;">for</span> <span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">ulong</span> n <span style="color: #008000;">=</span> <span style="color: #FF0000;">5</span><span style="color: #008000;">;</span> n <span style="color: #008000;">&amp;</span>lt<span style="color: #008000;">;=</span> limit<span style="color: #008000;">;</span> n <span style="color: #008000;">+=</span> <span style="color: #FF0000;">2</span><span style="color: #008000;">&#41;</span></div></div>
<p>so you aren&#039;t checking to see if even numbers are primes?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
