title: Learning F# - printing prime numbers
body: <p>Yesterday I started looking at F# during some spare time. I thought I would start with the standard problem of printing out all the prime numbers up to 100. Heres what I came up with...</p>
  
  <pre><code>#light
  open System
  
  let mutable divisable = false
  let mutable j = 2
  
  for i = 2 to 100 do
      j &lt;- 2
      while j &lt; i do
          if i % j = 0 then divisable &lt;- true
          j &lt;- j + 1
  
      if divisable = false then Console.WriteLine(i)
      divisable &lt;- false
  </code></pre>
  
  <p>The thing is I feel like I have approached this from a C/C# perspective and not embraced the true functional language aspect. </p>
  
  <p>I was wondering what other people could come up with - and whether anyone has any tips/pointers/suggestions. I feel good F# content is hard to come by on the web at the moment, and the last functional language I touched was <a href="http://en.wikipedia.org/wiki/Hope_(programming_language)" rel="noreferrer">HOPE</a> about 5 years ago in university. </p>