How does one implement IsPrime() function
<blockquote>
  <p><strong>Possible Duplicates:</strong><br>
  <a href="http://stackoverflow.com/questions/1510124/program-to-find-prime-numbers-in-c">Program to find prime numbers in C#</a><br>
  <a href="http://stackoverflow.com/questions/886540/prime-numbers-c">prime numbers c#</a><br>
  <a href="http://stackoverflow.com/questions/1042902/most-elegant-way-to-generate-prime-numbers">Most elegant way to generate prime numbers</a>  </p>
</blockquote>



<p>Hi Guys.</p>

<p>How does one check if a number is prime or not?</p>
