more efficient sieve program, using arrays of Bool instead of Int.