<div class="gmail_quote">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>&gt; What &#39;problem&#39; are you trying to solve?<br>In general, anytime you can use a premade solution, you are at an advantage,<br>
not cheating.<br>That&#39;s one of the marks of a truly good programmer - being able to reuse as<br>much code as possible.<br>Unless it&#39;s a homework problem and he said &quot;don&#39;t use the prime function&quot;<br>
because in this case, your goal is to learn how to write a prime function,<br>not to calculate primes.<br>I.E. it&#39;s the doing, not the task.  And if that&#39;s the case, please let us<br>know that it&#39;s homework.  We will still help you, we just follow certain<br>
guidelines<br>when providing homework assistance so as not to &quot;give it away&quot; and still<br>allow you to reason / come up with the solution on your own, as your teacher<br>probably intended.<br></blockquote>
<div>  </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>-Luke<br></blockquote>
<div>It&#39;s not homework i just want to be able to convert my algorithm into good code, and the only way to do that is by actually writing it. I&#39;m just writing it to learn how it&#39;s done.</div></div>