Xavier writes down a sequence of positive integers on a blackboard, beginning with 1. Each term thereafter equals the smallest positive integer which cannot be expressed as the product of one or more distinct terms already on the blackboard. The first several terms of Xavier’s sequence are 1, 2, 3, 4, 5, 7, and 9. He stops writing when he first writes a number greater than 1000. At this point, how many composite numbers will Xavier have written?

asdf1243 Jan 6, 2019