Primality by trial division: Difference between revisions
Content added Content deleted
m (→compact version: elided scrolling for the output section.) |
|||
Line 2,462:
return 1 /*done dividing, it's prime. */</lang>
{{out|output|text= when using the default input of: <tt> 100 </tt>}}
<pre>
2 is prime.
3 is prime.
|