[NBLUG/talk] OT: First 500 prime numbers

Steve Zimmerman stevetux at sonic.net
Thu Jun 5 15:47:01 PDT 2003


I'm trying to make a program in C that prints out a table
of the first 10 prime numbers, in an endeavor to eventually
create a program that prints out the first 500 prime numbers 
(Knuth, v1, p. 147).  So far I am without success.  The file is 
www.sonic.net/~stevetux/prime2.c.  See prime1.c in the same
directory for my successful half try.

Anyone want to give it a shot?  I'll appreciate advice, too, but
what I'm really looking for is code.  Thanks.

	-- Steve Zimmerman




More information about the talk mailing list