<?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: 1,000,000th Fibonacci Number One-Liner in C</title>
	<atom:link href="http://www.ralree.com/2009/09/09/1000000th-fibonacci-number-one-liner-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ralree.com/2009/09/09/1000000th-fibonacci-number-one-liner-in-c/</link>
	<description>Malicious enjoyment derived from observing someone else's misfortune</description>
	<lastBuildDate>Mon, 09 Jan 2012 12:33:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: micalea</title>
		<link>http://www.ralree.com/2009/09/09/1000000th-fibonacci-number-one-liner-in-c/comment-page-1/#comment-4576</link>
		<dc:creator>micalea</dc:creator>
		<pubDate>Wed, 05 Oct 2011 02:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.ralree.com/?p=22673#comment-4576</guid>
		<description>Quisiera saber el numero de linner, del acido alfa naftalenacetico. Gracias.</description>
		<content:encoded><![CDATA[<p>Quisiera saber el numero de linner, del acido alfa naftalenacetico. Gracias.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://www.ralree.com/2009/09/09/1000000th-fibonacci-number-one-liner-in-c/comment-page-1/#comment-4299</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Sat, 21 May 2011 18:15:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.ralree.com/?p=22673#comment-4299</guid>
		<description>Yeah, you can do that.  I recently found a huge optimization and I need to update the code here.  Cheers.</description>
		<content:encoded><![CDATA[<p>Yeah, you can do that.  I recently found a huge optimization and I need to update the code here.  Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ekharion</title>
		<link>http://www.ralree.com/2009/09/09/1000000th-fibonacci-number-one-liner-in-c/comment-page-1/#comment-4298</link>
		<dc:creator>Ekharion</dc:creator>
		<pubDate>Mon, 16 May 2011 17:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.ralree.com/?p=22673#comment-4298</guid>
		<description>Prolog:

%fib(IN,OUT,P).
fib(0,0,0).
fib(1,1,0).
fib(IN,OUT,P) :- IN2 is IN -1, fib(IN2,P,P2), OUT is P + P2.

 :mrgreen:  :wink:</description>
		<content:encoded><![CDATA[<p>Prolog:</p>
<p>%fib(IN,OUT,P).<br />
fib(0,0,0).<br />
fib(1,1,0).<br />
fib(IN,OUT,P) :- IN2 is IN -1, fib(IN2,P,P2), OUT is P + P2.</p>
<p> :mrgreen:  :wink:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://www.ralree.com/2009/09/09/1000000th-fibonacci-number-one-liner-in-c/comment-page-1/#comment-1492</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Fri, 11 Dec 2009 03:37:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ralree.com/?p=22673#comment-1492</guid>
		<description>Robert:

Thanks for the comment.  That isn&#039;t a bad way to generate the number, and if I slightly modify it, it does:

&lt;pre&gt;&lt;code&gt;
# Fibonacci in Python 3.0
i=0
c=1000000
# Sets number you want program to stop at.
x=0
y=1
while i&lt;=c:
  y=y+x
  i=i+1
  if i&lt;=c:
    x=x+y
    i=i+1
  else:
    break

print (&quot;  &quot;)
print (&quot;  &quot;)
print (&quot;Fibonacci number &quot;,i,&quot; = &quot;,y)
&lt;/code&gt;&lt;/pre&gt;

Yet, it takes over 3 times as long as my example 

Your script: 0m59.591s
My program: 0m17.435s</description>
		<content:encoded><![CDATA[<p>Robert:</p>
<p>Thanks for the comment.  That isn&#8217;t a bad way to generate the number, and if I slightly modify it, it does:</p>
<pre><code>
# Fibonacci in Python 3.0
i=0
c=1000000
# Sets number you want program to stop at.
x=0
y=1
while i&lt;=c:
  y=y+x
  i=i+1
  if i&lt;=c:
    x=x+y
    i=i+1
  else:
    break

print (&quot;  &quot;)
print (&quot;  &quot;)
print (&quot;Fibonacci number &quot;,i,&quot; = &quot;,y)
</code></pre>
<p>Yet, it takes over 3 times as long as my example </p>
<p>Your script: 0m59.591s<br />
My program: 0m17.435s</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Ottignon</title>
		<link>http://www.ralree.com/2009/09/09/1000000th-fibonacci-number-one-liner-in-c/comment-page-1/#comment-1491</link>
		<dc:creator>Robert Ottignon</dc:creator>
		<pubDate>Fri, 11 Dec 2009 03:01:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.ralree.com/?p=22673#comment-1491</guid>
		<description>Python code for generating 1000,000th number in the Fibonacci sequence (or any number, the attribute of c):

&lt;pre&gt;&lt;code&gt;# Fibonacci in Python 3.0
i=0
c=1000000
# Sets number you want program to stop at.
x=0
y=1
while i&lt;=c:
	print (&quot;  &quot;)
	print (&quot;  &quot;)
	print (&quot;Fibonacci number &quot;,i,&quot; = &quot;,x)
	y=y+x
	i=i+1
	if i&lt;=c:
		print (&quot;  &quot;)
		print (&quot;  &quot;)
		print (&quot;Fibonacci number &quot;,i,&quot; = &quot;,y)
		x=x+y
		i=i+1
	else:
		break
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Python code for generating 1000,000th number in the Fibonacci sequence (or any number, the attribute of c):</p>
<pre><code># Fibonacci in Python 3.0
i=0
c=1000000
# Sets number you want program to stop at.
x=0
y=1
while i< =c:
	print ("  ")
	print ("  ")
	print ("Fibonacci number ",i," = ",x)
	y=y+x
	i=i+1
	if i<=c:
		print ("  ")
		print ("  ")
		print ("Fibonacci number ",i," = ",y)
		x=x+y
		i=i+1
	else:
		break
</code></code></pre>
]]></content:encoded>
	</item>
</channel>
</rss>

