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