OFFSET
1,2
COMMENTS
The sequence is started with a(1) = 0 and always extended with the smallest integer not yet present and not leading to a contradiction.
If two successive digits are equal (e.g., 2,2) we accept that there is a "larger one" (2).
The digits "8" and "9" cannot be present in the sequence as no "prime digit" is larger than "8" or "9".
LINKS
Jean-Marc Falcoz, Table of n, a(n) for n = 1..7853
EXAMPLE
In the 1st pair of integers (0,2) the larger term is 2, which is prime;
in the 2nd pair of integers (2,1) the larger term is 2, which is prime;
in the 3rd pair of integers (1,3) the larger term is 3, which is prime;
in the 4th pair of integers (3,5) the larger term is 5, which is prime;
...
in the 9th pair of integers (71,20) the larger term is 71, which is prime;
in the 10th pair of integers (20,23) the larger term is 23, which is prime;
in the 11th pair of integers (23,12) the larger term is 23, which is prime; etc.
In the 1st pair of digits (0,2) the larger digit is 2, which is prime;
in the 2nd pair of digits (2,1) the larger digit is 2, which is prime;
in the 3rd pair of digits (1,3) the larger digit is 3, which is prime;
in the 4th pair of digits (3,5) the larger digit is 5, which is prime;
...
in the 9th pair of digits (7,1) the larger digit is 7, which is prime;
in the 10th pair of digits (1,2) the larger digit is 2, which is prime;
in the 11th pair of digits (2,0) the larger digit is 2, which is prime; etc.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Eric Angelini and Jean-Marc Falcoz, Feb 20 2017
STATUS
approved