Implemented the sieve to mark indices in the array as 1 or 0 but it isn't working past 2.