This question already has an answer here:
- Count up forever 184 answers
You should write a program or function which receives no input and outputs a stream of digits.
The stream should contain at least once every positive integer number which does not contain the digit sequence
42. E.g. The string
1231contains the integers
1 12 123 1231 2 23 231 3 31 (and 1 again)
The stream should not contain the digit sequence
If your interpreter can't handle infinite output gracefully you can add code to only print the first
ndigits. This added code does not count to your score.
Note that the stream
No randomness should be used.
This is code-golf so the shortest entry wins.