Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A046942
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A046942 Indices of primes appearing in A046941. +0
6
1, 2, 3, 4, 5, 8114118, 535252535 (list; graph; listen)
OFFSET

0,2

LINKS

Eric Weisstein's World of Mathematics, Link to a section of The World of Mathematics.

MATHEMATICA

NextPalindrome[n_] := Block[ {l = Floor[ Log[10, n] + 1], idn = IntegerDigits[n]}, If[ Union[ idn] == {9}, Return[n + 2], If[l < 2, Return[n + 1], If[ FromDigits[ Reverse[ Take[ idn, Ceiling[l/2]]]] FromDigits[ Take[ idn, -Ceiling[l/2]]], FromDigits[ Join[ Take[ idn, Ceiling[l/2]], Reverse[ Take[ idn, Floor[l/2]]] ]], idfhn = FromDigits[ Take[ idn, Ceiling[l/2]]] + 1; idp = FromDigits[ Join[ IntegerDigits[ idfhn], Drop[ Reverse[ IntegerDigits[ idfhn]], Mod[l, 2]]]] ]]]];

p = 0; Do[p = NextPalindrome[p]; While[ !PrimeQ[p], p = NextPalindrome[ p]]; q = IntegerDigits[ PrimePi[ p]]; If[Reverse[q] == q, Print[{p, FromDigits[q]}]], {n, 10^4}] (from Robert G. Wilson v Feb 03 2005)

CROSSREFS

Equals pi(A046941).

Cf. A046941, A103357, A103358, A103402, A103403.

Sequence in context: A004911 A062934 A038106 this_sequence A103688 A051703 A004567

Adjacent sequences: A046939 A046940 A046941 this_sequence A046943 A046944 A046945

KEYWORD

nice,nonn

AUTHOR

Carlos B. Rivera F. (crivera(AT)primepuzzles.net)

EXTENSIONS

535252535 from Giovanni Resta (g.resta(AT)iit.cnr.it), May 14 2003

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 29 12:46 EST 2009. Contains 167659 sequences.


AT&T Labs Research