<?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: Justin Etheredge&#8217;s LINQ Challenge</title>
	<atom:link href="http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/feed/" rel="self" type="application/rss+xml" />
	<link>http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/</link>
	<description>Rambling and occasional wisdom from Nate Kohari</description>
	<lastBuildDate>Wed, 01 Sep 2010 18:45:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Nate</title>
		<link>http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/comment-page-1/#comment-2746</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Mon, 18 Jan 2010 13:43:27 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/#comment-2746</guid>
		<description>M@: LINQ (at least LINQ to Objects, which is what we&#039;re talking about here) doesn&#039;t really have anything to do with databases. The syntax is reminiscent of SQL, but it&#039;s just intended to operate on collections of objects in memory.</description>
		<content:encoded><![CDATA[<p>M@: LINQ (at least LINQ to Objects, which is what we&#8217;re talking about here) doesn&#8217;t really have anything to do with databases. The syntax is reminiscent of SQL, but it&#8217;s just intended to operate on collections of objects in memory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M@</title>
		<link>http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/comment-page-1/#comment-2744</link>
		<dc:creator>M@</dc:creator>
		<pubDate>Wed, 13 Jan 2010 20:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/#comment-2744</guid>
		<description>this is going to seem like a moronic question, but why create a programming language around sql?  I know NOTHING about LINQ so you can feel free to tell me to RTFM :)

I&#039;m working in a company that is about to start in on a lot of BI stuff, so I&#039;m curious to learn more about LINQ.</description>
		<content:encoded><![CDATA[<p>this is going to seem like a moronic question, but why create a programming language around sql?  I know NOTHING about LINQ so you can feel free to tell me to RTFM :)</p>
<p>I&#8217;m working in a company that is about to start in on a lot of BI stuff, so I&#8217;m curious to learn more about LINQ.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Conker</title>
		<link>http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/comment-page-1/#comment-2741</link>
		<dc:creator>Conker</dc:creator>
		<pubDate>Tue, 12 Jan 2010 15:37:18 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/#comment-2741</guid>
		<description>Hello Nate, not trying to take a credit, its a cleaned up version of your query :)
To be compatible with chanllenge, the first check x != 1 can be left as it is, it doesnt affect speed as much as second check x!=y, which is completely unnecessary.
Challenge aside, i think this \cleaned\ version is as very elegant , simple  and truly shows the power of LINQ.</description>
		<content:encoded><![CDATA[<p>Hello Nate, not trying to take a credit, its a cleaned up version of your query :)<br />
To be compatible with chanllenge, the first check x != 1 can be left as it is, it doesnt affect speed as much as second check x!=y, which is completely unnecessary.<br />
Challenge aside, i think this \cleaned\ version is as very elegant , simple  and truly shows the power of LINQ.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate</title>
		<link>http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/comment-page-1/#comment-2739</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Tue, 12 Jan 2010 13:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/#comment-2739</guid>
		<description>@Conker:

The challenge said the beginning of the statement had to start with Enumerable.Range(1, max) ... otherwise I&#039;d agree. :)</description>
		<content:encoded><![CDATA[<p>@Conker:</p>
<p>The challenge said the beginning of the statement had to start with Enumerable.Range(1, max) &#8230; otherwise I&#8217;d agree. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Conker</title>
		<link>http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/comment-page-1/#comment-2738</link>
		<dc:creator>Conker</dc:creator>
		<pubDate>Tue, 12 Jan 2010 11:48:35 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/#comment-2738</guid>
		<description>More compact and faster variant :

int max = ...
var primes = Enumerable.Range(2, max-1).Where(x =&gt; !Enumerable.Range(2, (int)Math.Sqrt(x)-1).Any(y =&gt;x % y == 0));</description>
		<content:encoded><![CDATA[<p>More compact and faster variant :</p>
<p>int max = &#8230;<br />
var primes = Enumerable.Range(2, max-1).Where(x =&gt; !Enumerable.Range(2, (int)Math.Sqrt(x)-1).Any(y =&gt;x % y == 0));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yex</title>
		<link>http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/comment-page-1/#comment-2735</link>
		<dc:creator>Yex</dc:creator>
		<pubDate>Sat, 09 Jan 2010 01:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/#comment-2735</guid>
		<description>Thanks for the post. I&#039;d love a subscription to TekPub. I figured the other guy didn&#039;t leave an email address, so maybe I still had a shot, eh?  ; )</description>
		<content:encoded><![CDATA[<p>Thanks for the post. I&#8217;d love a subscription to TekPub. I figured the other guy didn&#8217;t leave an email address, so maybe I still had a shot, eh?  ; )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate</title>
		<link>http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/comment-page-1/#comment-2733</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Sat, 09 Jan 2010 01:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/#comment-2733</guid>
		<description>@Rene: It&#039;s yours. Send me an email (nate@enkari.com) with your info and I&#039;ll pass it along to Justin. :)</description>
		<content:encoded><![CDATA[<p>@Rene: It&#8217;s yours. Send me an email (nate@enkari.com) with your info and I&#8217;ll pass it along to Justin. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rene</title>
		<link>http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/comment-page-1/#comment-2732</link>
		<dc:creator>Rene</dc:creator>
		<pubDate>Sat, 09 Jan 2010 01:38:49 +0000</pubDate>
		<guid isPermaLink="false">http://kohari.org/2010/01/08/justin-etheredges-linq-challenge/#comment-2732</guid>
		<description>i want the suscription =D</description>
		<content:encoded><![CDATA[<p>i want the suscription =D</p>
]]></content:encoded>
	</item>
</channel>
</rss>
