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.

A054218 Palindromic primes of the form 'primemirp' resulting from A054217.

This page as a plain text file.
%I A054218 #21 Nov 23 2023 07:58:07
%S A054218 2,3,5,7,131,313,373,797,11311,17971,18181,19991,35353,72727,78787,
%T A054218 90709,93739,96769,98389,1153511,1193911,1201021,1409041,1583851,
%U A054218 1597951,1657561,1831381,1879781,3083803,3089803,3319133,3343433,3391933,3541453,3643463
%N A054218 Palindromic primes of the form 'primemirp' resulting from A054217.
%C A054218 Original idea from _G. L. Honaker, Jr._
%H A054218 Peter Rowlett, <a href="/A054218/b054218.txt">Table of n, a(n) for n = 1..8668</a>
%e A054218 Prime 113 has emirp 311 and 11311 is a palindromic prime.
%o A054218 (Python)
%o A054218 from sympy import isprime
%o A054218 for i in range(2,10**7):
%o A054218     if isprime(i):
%o A054218         emirp = int(str(i)[-1::-1])
%o A054218         if isprime(emirp):
%o A054218             primemirp = int(str(i)+str(emirp)[1:])
%o A054218             if isprime(primemirp):
%o A054218                 print(primemirp)
%o A054218 # _Peter Rowlett_, Nov 16 2023
%Y A054218 Cf. A054217, A000040, A006567, A048054, A002385.
%K A054218 nonn,base
%O A054218 1,1
%A A054218 _Patrick De Geest_, Feb 15 2000
%E A054218 a(33)-a(35) from _Peter Rowlett_, Nov 16 2023