OFFSET
1,1
COMMENTS
This sequence (like the emirps) experiences large gaps when the most-significant-digit is {2,4,5,6,8}.
LINKS
Christian N. K. Anderson, Table of n, a(n) for n = 1..10000
EXAMPLE
7177 and 10177 are in the sequence because both are emirps, and both become the emirp 17 upon deletion of their first and last digits.
PROG
(R) library(gmp); isemirp<-function(x) isprime(x) & (j=paste(rev(unlist(strsplit(as.character(x), split=""))), collapse=""))!=x & isprime(j);
no0<-function(s){ while(substr(s, 1, 1)=="0" & nchar(s)>1) s=substr(s, 2, nchar(s)); s};
i=as.bigz(0); y=as.bigz(rep(0, 100)); len=0;
while(len<100) if(isemirp((i=nextprime(i)))) if(isemirp(as.bigz(no0(substr(i, 2, nchar(as.character(i))-1))))) y[(len=len+1)]=i;
as.vector(y)
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
Kevin L. Schwartz and Christian N. K. Anderson, May 03 2013
STATUS
approved