Machine Organization I

V22.0201 - Spring 2009

C Assignment

Due: Friday, April 24th

Sieve of Erasthosenes Prime Number Generator Redux


Redo the Sieve of Erasthosenes Prime Number Generator you created, but this time code it in C using the GCC compiler (which includes the XCode compiler on the Mac).

Here are some new considerations:


Extra Credit (2 points): As in the Assembler version, create an array of BYTES but store the numbers as individual BITS. Note that the array should still only be accessed using pointers! (Clearly comment your program at the top that it is intended for extra credit.)