/*
-- Here is a program written in C. It compiles and works but
-- is in other respects less than perfect.
-- See if you can improve it.
*/
#include
#define N 100
/*-- Largest number to be considered*/
main(){
/*
-- a program to output prime numbers between 1 and 100
-- A prime is a number P that has no divisors between 2 and P-1
-- For example: 1, 2, and 3 are considered to prime.
*/
int p /* possible prime*/ , d /*possible divisors*/;
for (p=1; p<=N;p++){/* -- for each possible prime in turn...*/
{
int d, count=0; /*--here we have found 0 divisors*/
for (d=2;d