<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Tom Moertel's Weblog: Computing the digits of e</title>
    <link>http://blog.moertel.com/articles/2004/07/22/computing-the-digits-of-e</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Quality rants on programming theory and stuff geeks like</description>
    <item>
      <title>Computing the digits of e</title>
      <description>&lt;p&gt;I discovered only recently about Google&amp;#8217;s challenge to find the first ten-digit prime number in the consecutive digits of &lt;em&gt;e&lt;/em&gt;. For fun, I solved the challenge (and the follow-up challenge), but the interesting part is a cool algorithm that I came across to compute the digits of e, one by one.&lt;/p&gt;


	&lt;p&gt;The algorithm lets you compute the digits sequentially without any pre-commitment to the total number of digits you&amp;#8217;ll eventually take. The technique behind the algorithm can be used to compute other things, and so it&amp;#8217;s worth a look.&lt;/p&gt;


	&lt;p&gt;If you&amp;#8217;re interested, please take a look at my HuSi diary entry on the subject, &lt;a href="http://tmoertel.hulver.com/scoop/story/2004/7/22/153549/352"&gt;Google challenge task and computing the digits of &lt;em&gt;e&lt;/em&gt;&lt;/a&gt;, where I explain the method in detail.  I&amp;#8217;ll also refer you to Jeremy Gibbons&amp;#8217;s paper &lt;a href="http://web.comlab.ox.ac.uk/oucl/work/jeremy.gibbons/publications/index.html#spigot"&gt;An Unbounded Spigot Algorithm for the Digits of Pi&lt;/a&gt;, which is the inspiration for the method.&lt;/p&gt;</description>
      <pubDate>Thu, 22 Jul 2004 18:25:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:c8c226e4fbc812ab24d3696397eaada8</guid>
      <author>Tom Moertel</author>
      <link>http://blog.moertel.com/articles/2004/07/22/computing-the-digits-of-e</link>
      <category>programming</category>
      <category>functional programming</category>
      <trackback:ping>http://blog.moertel.com/articles/trackback/26</trackback:ping>
    </item>
  </channel>
</rss>
