User Tools

Site Tools


prelude_one_to_carmichael_numbers_--_primality_testing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
prelude_one_to_carmichael_numbers_--_primality_testing [2011/09/25 06:07]
jtkorb
prelude_one_to_carmichael_numbers_--_primality_testing [2011/09/25 06:21] (current)
jtkorb
Line 11: Line 11:
 ===== Output ===== ===== Output =====
  
-For each non-zero input value, ''​n'',​ determine whether ''​n''​ is prime, then print ''​n'',​ a space, and either <​tt>​is prime</​tt>​ or <​tt>​is not prime</​tt>​.+For each non-zero input value, ''​n'',​ determine whether ''​n''​ is prime, then print ''​n'',​ a space, and either <​tt>​is prime.</tt> or <​tt>​is not prime.</​tt>​.
  
 ===== Sample Input ===== ===== Sample Input =====
Line 24: Line 24:
  
 <​code>​ <​code>​
-7 is prime +7 is prime. 
-10 is not prime+10 is not prime.
 </​code>​ </​code>​
prelude_one_to_carmichael_numbers_--_primality_testing.txt · Last modified: 2011/09/25 06:21 by jtkorb