<?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: Project Euler, Problem #1</title>
	<atom:link href="http://ifdebug.com/project-euler-problem-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://ifdebug.com/project-euler-problem-1/</link>
	<description>Technical thoughts of a coffee addicted developer</description>
	<lastBuildDate>Fri, 22 Oct 2010 13:14:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Alistair</title>
		<link>http://ifdebug.com/project-euler-problem-1/comment-page-1/#comment-1191</link>
		<dc:creator>Alistair</dc:creator>
		<pubDate>Wed, 24 Sep 2008 13:41:32 +0000</pubDate>
		<guid isPermaLink="false">http://ifdebug.com/?p=107#comment-1191</guid>
		<description>Andrew,

There are plenty of different ways to solve the problems and there aren&#039;t extra points for elegant versus brute force solutions.

In your example, a solution like that would work so long as you could remove the duplicate items from the two lists. As an example, the first range statement will include the value 30, which will also be present in the second list. As such, it&#039;ll be summed twice and you&#039;d get an inflated result.

Al</description>
		<content:encoded><![CDATA[<p>Andrew,</p>
<p>There are plenty of different ways to solve the problems and there aren&#8217;t extra points for elegant versus brute force solutions.</p>
<p>In your example, a solution like that would work so long as you could remove the duplicate items from the two lists. As an example, the first range statement will include the value 30, which will also be present in the second list. As such, it&#8217;ll be summed twice and you&#8217;d get an inflated result.</p>
<p>Al</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://ifdebug.com/project-euler-problem-1/comment-page-1/#comment-1189</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Wed, 24 Sep 2008 12:15:20 +0000</pubDate>
		<guid isPermaLink="false">http://ifdebug.com/?p=107#comment-1189</guid>
		<description>Could you have summed with the range stepping set to 3 &amp; 5 rather than a brute force &#039;try all numbers&#039; approach with singular stepping ?

ie you already know the steps must be in 3s and 5s.

For example:

sum[range(0,1000,3) + range(0,1000,5)]

This gives 266333.</description>
		<content:encoded><![CDATA[<p>Could you have summed with the range stepping set to 3 &amp; 5 rather than a brute force &#8216;try all numbers&#8217; approach with singular stepping ?</p>
<p>ie you already know the steps must be in 3s and 5s.</p>
<p>For example:</p>
<p>sum[range(0,1000,3) + range(0,1000,5)]</p>
<p>This gives 266333.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

