Agreed; the only change I could make without breaking it is swapping the "<99" with ">-1"-- although that did get the desired result: my tweaked version spews primes until you hit Ctrl-C.
(Yeah, it's lame, but it gave me a brief moment of extreme joy in an otherwise very dreary day.)