For the variant allowing M and N, I get
2, 3, 5, 7, 11, 13, 17, 19, 23, 31, 29, 37, 43, 47, 41, 59, 61, 53, 67, 71, 79, 83, 73, 101, 89, 103, 107, 97, 109, 113, 127, 131, 139?, 151?, 149, ...
which is surprisingly far from containing the primes in order, as I might have expected (up to one or two exceptions, like A063884). Would someone check me on these calculations?
Possibly relevant:
R. K. Guy, C. B. Lacampagne and J. L. Selfridge, "Primes at a glance", Mathematics of Computation 48:177 (1987), pp. 183-202.