login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo

Revision History for A002385

(Underlined text is an ; strikethrough text is a deletion.)

newer changes | Showing entries 11-20 | older changes
A002385 Palindromic primes: prime numbers whose decimal expansion is a palindrome.
(history; published version)
#148 by Yunhan Shi at Mon Mar 06 00:24:15 EST 2023
PROG

STATUS

approved

Discussion
Mon Mar 06 00:27
Yunhan Shi: this fixes rev148: https://oeis.org/history/view?seq=A002385&v=148
by adding (no replacement) the sorted array.
#147 by Michel Marcus at Fri Mar 03 10:57:46 EST 2023
PROG

A002385 = [11]+[*filter(isprime, (int(str(x) + str(x)[-2::-1]) for x in range(10**5)))] # _Yunhan Shi_, Mar 3 2023

KEYWORD

nonn,base,nice,easy,changed

STATUS

proposed

#146 by Yunhan Shi at Fri Mar 03 10:24:40 EST 2023
STATUS

editing

Discussion
Fri Mar 03 10:55
Michael S. Branicky: if it is not sorted, then it does not produce this sequence
10:55
Michel Marcus: yes BUT you are not supposed to delete existing program
10:56
Michel Marcus: and Mar 3 2023 should be Mar 03 2023
10:57
Michel Marcus: and seeing Michael discussion; I guess it will be easier if I revert your edit
10:57
Michel Marcus: you can come back again and ADD your program if you want
#145 by Yunhan Shi at Fri Mar 03 10:23:11 EST 2023
PROG

A002385 = [11]+[*filter(isprime, (int(str(x) + str(x)[-2::-1]) for x in range(10**4)))] # Yunhan Shi, Mar 3 2023

Discussion
Fri Mar 03 10:24
Yunhan Shi: Hi all. I found a much shorter python code to generate the same sequence. (I didn't sort it)
#144 by Yunhan Shi at Fri Mar 03 10:21:19 EST 2023
PROG

from itertools import chain

A002385 = sorted((n for n in chain((int(str(x)+str(x)[::-1]) for x in range(1, 10**5)), (int(str(x)+str(x)[-2::-1]) for x in range(1, 10**5))) if isprime(n))) # _Chai Wah Wu_, Aug 16 2014

STATUS

approved

#143 by Michael De Vlieger at Fri Apr 01 20:18:56 EDT 2022
STATUS

editing

#142 by Michael De Vlieger at Fri Apr 01 20:18:53 EDT 2022
LINKS

Ernest G. Hibbs, <a href="https://www.proquest.com/openview/4012f0286b785cd732c78eb0fc6fce80">Component Interactions of the Prime Numbers</a>, Capitol Technology Univ. (2022), see p. 33.

STATUS

reviewed

#141 by Michel Marcus at Fri Apr 01 14:58:21 EDT 2022
STATUS

proposed

#140 by Michael De Vlieger at Fri Apr 01 14:33:13 EDT 2022
STATUS

editing

#139 by Michael De Vlieger at Fri Apr 01 14:33:11 EDT 2022
LINKS

W. D. Banks, D. N. Hart, M. Sakata, <a href="http://dx.doi.org/10.4310/MRL.2004.v11.n6.a10">Almost all palindromes are composite</a>, Math. Res. Lett., 11 No. 5-6 (2004), 853-868.

Phakhinkon Phunphayap, Prapanpong Pongsriiam, <a href="https://arxiv.org/abs/1803.09621">Reciprocal sum of palindromes</a>, arXiv:1803.00161 [math.CA], 2018.

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 16 23:11 EDT 2024. Contains 374360 sequences. (Running on oeis4.)