The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

A187871

a(1)=1; for n > 1, a(n) is the smallest number that is formed by arranging the decimal numbers "1", "2", ..., "n" in some order so that the sum of every pair of adjacent numbers "i" "j" is prime.