login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A046472 Palindromic primes in base 10 and base 2. 0
3, 5, 7, 313, 7284717174827, 390714505091666190505417093 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

LINKS

P. De Geest, World!Of Palindromic Primes

MATHEMATICA

Select[Prime[Range[10!]], IntegerDigits[#]==Reverse[IntegerDigits[#]] && IntegerDigits[#, 2]==Reverse[IntegerDigits[#, 2]]&] (*From Vladimir Joseph Stephan Orlovsky (4vladimir(AT)gmail.com), Dec 30 2010*)

p = Sort[Reap[Do[d=IntegerDigits[n]; p1=FromDigits[Join[Most[d], Reverse[d]]]; p2=FromDigits[Join[d, Reverse[d]]]; If[IntegerDigits[p1, 2] == Reverse[IntegerDigits[p1, 2]], Sow[p1]]; If[IntegerDigits[p2, 2] == Reverse[IntegerDigits[p2, 2]], Sow[p2]], {n, 0, 9999999}]][[2, 1]]]; Select[p, PrimeQ]

CROSSREFS

Cf. A002385.

Cf. A007632 (numbers that are palindromic in bases 2 and 10).

Sequence in context: A174271 A082756 A068832 * A065824 A191546 A069463

Adjacent sequences:  A046469 A046470 A046471 * A046473 A046474 A046475

KEYWORD

nonn,hard,base,changed

AUTHOR

Patrick De Geest (pdg(AT)worldofnumbers.com), Aug 15 1998.

EXTENSIONS

a(6) (from A007632) added by T. D. Noe (noe(AT)sspectra.com), Dec 31 2010

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 13 05:39 EST 2012. Contains 205436 sequences.