Sequence protocol, you gain access to methods that depend on accessing an element at a specific position in a collection. Apple’s Doc COLLECTIONSUNDERHOOD Collection 13
{ var possibles = A(repeating: true, count: limit + 1) var result = [Int]() for i in 2 ... limit { guard possibles[i] else { continue } for j in stride(from: i * i, through: limit, by: i) { possibles[j] = false } result.append(i) } return result } 60