Originally posted by: bahilchie@water.UUCP (Brian Hilchie)
Message-ID: <98@water.UUCP>
Date: Fri, 2-Nov-84 10:52:42 EST
Article-I.D.: water.98
Posted: Fri Nov 2 10:52:42 1984
Date-Received: Sat, 3-Nov-84 02:01:36 EST
References: <4017@tektronix.UUCP>
Organization: U of Waterloo, Ontario
Lines: 18
I hate to be disagreeable, but the sieve program I posted earlier is
correct. If you look at the program you'll see that it is impossible
for 'prime' to be even. Perhaps you typed in the program incorrectly,
or the output was taken from the wrong place. To get the correct output
insert
printf ("%d\n", prime);
after the line
prime = i + i + 3;
Brian Hilchie
{decvax|utzoo|ihnp4|allegra|clyde}!watmath!water!bahilchie