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

 

Logo

Revisions by Yunhan Shi

(See also Yunhan Shi's wiki page)

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

Showing all changes.
A002385 Palindromic primes: prime numbers whose decimal expansion is a palindrome.
(history; published version)
#149 by Yunhan Shi at Mon Mar 06 00:27:34 EST 2023
STATUS

editing

#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.
#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

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.)