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.

A046884 Doubly automorphic primes: p is k-th prime, ends in k and k is itself prime.

Original entry on oeis.org

17, 99551, 14968819, 95517973
Offset: 1

Views

Author

Keywords

Examples

			p(7)=17 with 7 and 17 both primes. p(9551)=99551 with both 9551 and 99551 primes.
		

Crossrefs

Cf. A046883.

Programs

  • Mathematica
    Select[Prime[Prime[Range[6000000]]],PrimePi[#]==Mod[ #,10^IntegerLength[ PrimePi[#]]]&] (* The program takes a long time to run *) (* Harvey P. Dale, Jul 05 2012 *)
    Prime[Select[Range[5517973],PrimeQ[#]&&StringEndsQ[ToString[Prime[#]],ToString[#]]&]] (* Much faster *) (* Ivan N. Ianakiev, Mar 23 2022 *)