Hint 4

Make the array to be an array of booleans. Each position will keep track of whether the integer has been "crossed-off" or not. "True" means "not crossed off", "false" means "crossed off." Another way to see it is that each position indicates that the integer is a prime number, as far as we have found out so far.


Thomas VanDrunen
Last modified: Mon Sep 15 16:41:25 CDT 2008