OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..10000
EXAMPLE
31 is in the sequence because (1) it is a 2-digit prime number, (2) the previous 2-digit prime number is 29 and (3) 31-29=2
1451 is in the sequence because (1) it is a 4-digit prime number, (2) the previous 4-digit prime number is 1447 and (3) 1451-1447=4
MATHEMATICA
Transpose[Select[Partition[Prime[Range[400]], 2, 1], IntegerLength[#[[1]]] == IntegerLength[#[[2]]]&&#[[2]]-#[[1]]==IntegerLength[#[[1]]]&]][[2]] (* Harvey P. Dale, Nov 01 2015 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), Apr 21 2006
EXTENSIONS
Edited by N. J. A. Sloane, Apr 29 2007
Corrected by Harvey P. Dale, Nov 01 2015
STATUS
approved