/* This program is supposed to determine whether an integer is prime 
 */

#include <stdio.h>

int main ()
{
  /* designate the number to be tested */
  int number = 2;

  /* check whether the number is prime */
  if ((number == 2) || ((number > 1) && (number % 2 == 1)))
    printf ("The number %d is prime\n", number);
  else
    printf ("The number %d is not prime\n", number);

  return 0;
}


/* the following normally would be placed in a different file
   commentary about correctness:
     the program identifies a number
     the program then checks if the number is 2 or an odd number greater than 1
     if so, the number is determined to be prime
     if not, the number is not prime
*/
