<br><br><div><span class="gmail_quote">On 2/10/07, <b class="gmail_sendername">Peter Berry</b> &lt;<a href="mailto:pwberry@gmail.com">pwberry@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Gah! Gmail has really broken defaults for posting to lists.<br><br>On 10/02/07, Creighton Hogg &lt;<a href="mailto:wchogg@gmail.com">wchogg@gmail.com</a>&gt; wrote:<br>&gt; Hello Haskell-ers,<br>&gt; So a friend and I were thinking about making code faster in Haskell, and I
<br>&gt; was wondering if there was a way to improve the following method of<br>&gt; generating the list of all prime numbers.&nbsp;&nbsp;It takes about 13 seconds to run,<br>&gt; meanwhile my friend&#39;s C version took 0.1.&nbsp;&nbsp;I&#39;d love to learn a bit more
<br>&gt; about how to optimize Haskell code.<br><br>Which subproblem takes 13 seconds? (Surely generating a list of all<br>primes will take an infinite amount of time, since there are<br>infinitely many of them?)</blockquote>
<div><br>Apparently I shouldn&#39;t send e-mails quickly, as it comes out as gibberish.&nbsp; It was the first 10000.&nbsp; The thirteen seconds was just approximate, but it showed the C one was much faster, which I figured was because I had constructed it poorly.&nbsp; Apparently I had, and I even managed to type it in wrong.&nbsp; 
<br><br><br></div><br></div><br>