NDTM · Recursively enumerable
Is n composite? Guess a factor
Accepts 1ⁿ exactly when n is composite: the machine guesses a factor p, then verifies it by dealing the remaining 1s into rounds of p. Primality by nondeterministic elimination.
The author’s examples, run
1111 → accept111111 → accept111111111 → accept11111 → reject1111111 → reject