cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A210498 Prime numbers that become emirps when their least-significant-digit is deleted.

Original entry on oeis.org

131, 137, 139, 173, 179, 311, 313, 317, 373, 379, 719, 733, 739, 797, 971, 977, 1493, 1499, 1571, 1579, 1993, 1997, 1999, 3119, 3371, 3373, 3593, 7013, 7019, 7331, 7333, 7393, 7433, 7517, 7691, 7699, 9371, 9377, 9413, 9419, 9533, 9539, 9677, 9679, 9719, 9833
Offset: 1

Views

Author

Keywords

Comments

This sequence (like the emirps) experiences large gaps when the most-significant-digit is {2,4,5,6,8}.

Examples

			Example: a(1)=131, which becomes 13 upon deletion, which is an emirp.
		

Crossrefs

Programs

  • R
    library(gmp); isemirp<-function(x) isprime(x) & (j=paste(rev(unlist(strsplit(as.character(x),split=""))),collapse=""))!=x & isprime(j);i=as.bigz(0); y=as.bigz(rep(0,100)); len=0;
    while(len<100)
        if(isprime((i=nextprime(i))))
            if(isemirp(as.bigz(substr(i,1,nchar(as.character(i))-1))))
                y[(len=len+1)]=i