<?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 in F# &#8211; Problem 48</title>
	<atom:link href="http://www.fsharp.it/2008/04/30/project-euler-in-f-problem-48/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fsharp.it/2008/04/30/project-euler-in-f-problem-48/</link>
	<description>Functional programming on .Net</description>
	<lastBuildDate>Wed, 23 Mar 2011 17:29:06 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Winston Smith</title>
		<link>http://www.fsharp.it/2008/04/30/project-euler-in-f-problem-48/comment-page-1/#comment-13992</link>
		<dc:creator>Winston Smith</dc:creator>
		<pubDate>Wed, 18 Aug 2010 12:04:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsharp.it/?p=30#comment-13992</guid>
		<description>I think the whole point of this puzzle is that you DON&#039;T use  BigInt or a similar library.

Otherwise it&#039;s trivial, as your code demonstrates.</description>
		<content:encoded><![CDATA[<p>I think the whole point of this puzzle is that you DON&#8217;T use  BigInt or a similar library.</p>
<p>Otherwise it&#8217;s trivial, as your code demonstrates.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: claudio</title>
		<link>http://www.fsharp.it/2008/04/30/project-euler-in-f-problem-48/comment-page-1/#comment-289</link>
		<dc:creator>claudio</dc:creator>
		<pubDate>Sun, 04 May 2008 08:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsharp.it/?p=30#comment-289</guid>
		<description>Hi Salvo,
your idea can be implemented with this code:

[fsharp]let answer = [1I .. 1000I] &#124;&gt; Seq.map (fun x -&gt; pow x x) &#124;&gt; Seq.map last10 &#124;&gt; Seq.fold (+) 0I[/fsharp]

However, the sum of all these 10-digits numbers results in a number (4629110846700) which contains 13 digits!

We are actually forced to apply the last10 function another time at the end...</description>
		<content:encoded><![CDATA[<p>Hi Salvo,<br />
your idea can be implemented with this code:</p>
<pre class="brush: fsharp">let answer = [1I .. 1000I] |&gt; Seq.map (fun x -&gt; pow x x) |&gt; Seq.map last10 |&gt; Seq.fold (+) 0I</pre>
<p>However, the sum of all these 10-digits numbers results in a number (4629110846700) which contains 13 digits!</p>
<p>We are actually forced to apply the last10 function another time at the end&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Salvo</title>
		<link>http://www.fsharp.it/2008/04/30/project-euler-in-f-problem-48/comment-page-1/#comment-287</link>
		<dc:creator>Salvo</dc:creator>
		<pubDate>Sat, 03 May 2008 16:05:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsharp.it/?p=30#comment-287</guid>
		<description>...mmm...

Ciao Claudio.

And if you generate the sequense of pow, next map the last10 function for each pow and at end sum all the numbers?

...mmm...</description>
		<content:encoded><![CDATA[<p>&#8230;mmm&#8230;</p>
<p>Ciao Claudio.</p>
<p>And if you generate the sequense of pow, next map the last10 function for each pow and at end sum all the numbers?</p>
<p>&#8230;mmm&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: claudio</title>
		<link>http://www.fsharp.it/2008/04/30/project-euler-in-f-problem-48/comment-page-1/#comment-286</link>
		<dc:creator>claudio</dc:creator>
		<pubDate>Thu, 01 May 2008 19:25:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsharp.it/?p=30#comment-286</guid>
		<description>I agree that your solution may be easier to understand, but it is not written according to the functional programming paradigm, is it?

BTW, which language is that? Python? Ruby?</description>
		<content:encoded><![CDATA[<p>I agree that your solution may be easier to understand, but it is not written according to the functional programming paradigm, is it?</p>
<p>BTW, which language is that? Python? Ruby?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Filippo</title>
		<link>http://www.fsharp.it/2008/04/30/project-euler-in-f-problem-48/comment-page-1/#comment-285</link>
		<dc:creator>Filippo</dc:creator>
		<pubDate>Thu, 01 May 2008 09:14:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsharp.it/?p=30#comment-285</guid>
		<description>I don&#039;t want to be a troll but this:

number = 0
for e in xrange(1000):
    number += e ** e
str(number)[-10:]

seems to be easier and (a bit) more readable.
HAND</description>
		<content:encoded><![CDATA[<p>I don&#8217;t want to be a troll but this:</p>
<p>number = 0<br />
for e in xrange(1000):<br />
    number += e ** e<br />
str(number)[-10:]</p>
<p>seems to be easier and (a bit) more readable.<br />
HAND</p>
]]></content:encoded>
	</item>
</channel>
</rss>

