TOPICS
Search

Palindromic Prime


PalindromicPrimes

A palindromic prime is a number that is simultaneously palindromic and prime. The first few (base-10) palindromic primes are 2, 3, 5, 7, 11, 101, 131, 151, 181, 191, 313, 353, 373, 383, 727, 757, 787, ... (OEIS A002385; Beiler 1964, p. 228). The number of palindromic primes less than a given number are illustrated in the plot above. The number of palindromic numbers having n=1, 2, 3, ... digits are 4, 1, 15, 0, 93, 0, 668, 0, 5172, 0, ... (OEIS A016115; De Geest) and the total number of palindromic primes less than 10, 10^2, 10^3, ... are 4, 5, 20, 20, 113, 113, 781, ... (OEIS A050251). Gupta (2009) has computed the numbers of palindromic primes up to 10^(21).

The following table lists palindromic primes in various small bases.

b OEIS base-b palindromic primes
2 A117697 11, 101, 111, 10001, 11111, 1001001, 1101011, ...
3 A117698 2, 111, 212, 12121, 20102, 22122, ...
4 A117699 2, 3, 11, 101, 131, 323, 10001, 11311, 12121, ...
5 A117700 2, 3, 111, 131, 232, 313, 414, 10301, 12121, 13331, ...
6 A117701 2, 3, 5, 11, 101, 111, 141, 151, 515, ...
7 A117702 2, 3, 5, 131, 212, 313, 515, 535, 616, ...
8 A006341 2, 3, 5, 7, 111, 131, 141, 161, 323, ...
9 A117703 2, 3, 5, 7, 131, 151, 212, 232, 272, 414, ...
10 A002385 2, 3, 5, 7, 11, 101, 131, 151, 181, ...

Banks et al. (2004) proved that almost all palindromes (in any base) are composite, with the precise statement being

where P(x) is the number of palindromic primes <=x and N(x) is the number of palindromic numbers <=x.

The sum of the reciprocals of the palindromic primes converges to approx 1.3240 (OEIS A118064) a number sometimes known as Honaker's constant (Rivera), where the value computed using all palindromic primes <=10^(11) is 1.32398... (M. Keith).

The first few palindromic primes formed by taking n digits in the decimal expansion of pi and reflecting about the last digit are 3, 313, 31415926535897932384626433833462648323979853562951413, ... (OEIS A039954; Caldwell). These numbers are prime for n=1, 2, 27, 151, 461, 2056, ... (OEIS A119351), with no others for n<=56755 (E. W. Weisstein, Mar. 21, 2009).

The first few n such that both n and p_n are palindromic (where p_n is the nth prime) are given by 1, 2, 3, 4, 5, 8114118, ... (OEIS A046942; Rivera), corresponding to p_n of 2, 3, 5, 7, 11, 143787341 (OEIS A046941; Rivera).

Palindromic primes of the form

pp_n(x)=x^n+(x+1)^n

for n=2 include 5, 181, 313, 3187813, ... (OEIS A050239; De Geest, Rivera), which occur for x=1, 9, 12, 1262, ... (OEIS A050236; De Geest, Rivera), with no others for n<10^(20) and x<2×10^(10) (De Geest).

The 20 largest known palindromic primes listed by PrimePages are summarized in the following table.

rank prime decimal digits date PrimePages
1 10^(2718281)-5·10^(1631138)-5·10^(1087142)-1 2718281 Aug. 2024 https://t5k.org/primes/page.php?id=138383
2 10^(2000007)-10^(1127194)-10^(872812)-1 2000007 Jan. 2024 https://t5k.org/primes/page.php?id=136879
3 10^(2000005)-10^(1051046)-10^(948958)-1 2000005 Jan. 2024 https://t5k.org/primes/page.php?id=136852
4 10^(1888529)-10^(944264)-1 1888529 Oct. 2021 https://t5k.org/primes/page.php?id=132851
5 10^(1234567)-20342924302·10^(617278)-1 1234567 Sep. 2021 https://t5k.org/primes/page.php?id=132715
6 10^(1234567)-1927633367291·10^(617277)-1 1234567 Jun. 2023 https://t5k.org/primes/page.php?id=136171
7 10^(1234567)-3626840486263·10^(617277)-1 1234567 Sep. 2021 https://t5k.org/primes/page.php?id=132766
8 10^(1234567)-4708229228074·10^(617277)-1 1234567 Sep. 2021 https://t5k.org/primes/page.php?id=132767
9 10^(490030)+10^(309648)+12345678987654321·10^(245007)+10^(180382)+1 490031 Dec. 2024 https://t5k.org/primes/page.php?id=138766
10 10^(490000)+3·(10^(7383)-1)/9·10^(241309)+1 490001 Aug. 2021 https://t5k.org/primes/page.php?id=132591
11 10^(474500)+999·10^(237249)+1 474501 Nov. 2014 https://t5k.org/primes/page.php?id=118775
12 10^(400000)+4·(10^(102381)-1)/9·10^(148810)+1 400001 Jul. 2021 https://t5k.org/primes/page.php?id=132557
13 10^(390636)+999·10^(195317)+1 390637 Nov. 2014 https://t5k.org/primes/page.php?id=118773
14 10^(362600)+666·10^(181299)+1 362601 Nov. 2014 https://t5k.org/primes/page.php?id=118770
15 10^(320236)+10^(160118)+1+(137·10^(160119)+731·10^(159275))(10^(843)-1)/(999) 320237 Mar. 2014 https://t5k.org/primes/page.php?id=117373
16 10^(320096)+10^(160048)+1+(137·10^(160049)+731·10^(157453))(10^(2595)-1)/(999) 320097 Mar. 2014 https://t5k.org/primes/page.php?id=117386
17 10^(314727)-8·10^(157363)-1 314727 Jan. 2013 https://t5k.org/primes/page.php?id=110658
18 10^(300010)+10^(204235)+12345678987654321·10^(149997)+10^(95775)+1 300011 Dec. 2024 https://t5k.org/primes/page.php?id=138748
19 10^(300000)+5·(10^(48153)-1)/9·10^(125924)+1 300001 Jun. 2021 https://t5k.org/primes/page.php?id=132404
20 10^(300000)+10^(158172)+11011·10^(149998)+10^(141828)+1 300001 Sep. 2024 https://t5k.org/primes/page.php?id=138592

See also

Belphegor Prime, Palindromic Number, Prime Number

Explore with Wolfram|Alpha

References

Banks, W. D.; Hart, D. N.; and Sakata, M. "Almost All Palindromes Are Composite." Math. Res. Lett. 11, 853-868, 2004.Beiler, A. H. Recreations in the Theory of Numbers: The Queen of Mathematical Entertains. New York: Dover, 1964.Caldwell, C. "The Top Twenty: Palindrome." https://t5k.org/top20/page.php?id=53#records.Caldwell, C. "Prime Curios!: 31415...51413 (53-digits)." https://t5k.org/curios/page.php?curio_id=725.De Geest, P. "Palindromic Prime Page 3." https://www.worldofnumbers.com/palprim3.htm.De Geest, P. "Palindromic Sums of Squares of Consecutive Integers." https://www.worldofnumbers.com/sumsquare.htm.De Geest, P. "Palindromic Numbers and Other Recreational Topics." https://www.worldofnumbers.com/index.shtml.De Geest, P. "Palindromic Prime Statistics--The Table." https://www.worldofnumbers.com/palprim1.htm.Gupta, S. S. "Palindromic Primes Up to 10^(21)." 13 Mar 2009. https://listserv.nodak.edu/cgi-bin/wa.exe?A2=ind0903&L=nmbrthry&T=0&F=&S=&P=2104.Jobling, P. "Re: Record Palindrome." 27 Dec 2005. https://www.worldofnumbers.com/YPFM6764.htm.Rivera, C. "Problems & Puzzles: Puzzle 014-Pal-Primes and Sum of Powers." https://www.primepuzzles.net/puzzles/puzz_014.htm.Rivera, C. "Problems & Puzzles: Puzzle 051-Pi Such that Pi is Palprime & i = Palindrome." https://www.primepuzzles.net/puzzles/puzz_051.htm.Rivera, C. "Problems & Puzzles: Puzzle 056-The Honaker's Constant." https://www.primepuzzles.net/puzzles/puzz_056.htm.Sloane, N. J. A. Sequences A002385/M0670, A006341, A016115, A039954, A046941, A046942, A050236, A050239, A050251, A117697, A117698, A117699, A117700, A117701, A117702, A117703, A118064, and A119351 in "The On-Line Encyclopedia of Integer Sequences."

Referenced on Wolfram|Alpha

Palindromic Prime

Cite this as:

Weisstein, Eric W. "Palindromic Prime." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/PalindromicPrime.html

Subject classifications

AltStyle によって変換されたページ (->オリジナル) /