OFFSET
1,2
COMMENTS
The sequence is always extended with the smallest integer not yet present that doesn't lead to a contradiction.
The sequence is infinite and might be a permutation of the integers > 0.
LINKS
Jean-Marc Falcoz, Table of n, a(n) for n = 1..1301
EXAMPLE
The first two terms are 1 and 2 because neither 12 or 21 are primes; the next term cannot be 3 as 23 is prime; 4 is ok because neither 24 nor 42 are primes; the next term cannot be 3 as 43 is prime; etc.
MATHEMATICA
a = {{1}}; Do[k = 1; While[Nand[! MemberQ[a, #], NoneTrue[Map[FromDigits, Permutations[a[[n - 1]]~Join~#]], PrimeQ]] &@ Set[d, IntegerDigits@ k], k++]; AppendTo[a, d], {n, 2, 83}]; FromDigits /@ a (* Michael De Vlieger, May 22 2017 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Eric Angelini and Jean-Marc Falcoz, May 22 2017
STATUS
approved