Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A152014
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A152014 Number of n-digit primes whose reversal is a different prime. +0
3
0, 8, 28, 204, 1406, 9538, 70474, 535578, 4192024 (list; graph; listen)
OFFSET

1,2

COMMENT

All terms are even.

EXAMPLE

a(1)=0 because there are no 1-digit terms in A006567, a(2)=8 because there are eight 2-digit terms in A006567: 13,17,31,37,71,73,79,97.

MATHEMATICA

Do[c = 0; p = NextPrime[10^(n - 1) - 1]; n1 = PrimePi[p]; n2 = PrimePi[NextPrime[10^n, -1]] - n1 + 1; Do[id = IntegerDigits[p]; i1 = id[[1]]; If[OddQ[i1] && i1 != 5, p1 = FromDigits[ Reverse[id]]; If[p1 != p, If[PrimeQ[p1], c++ ]]]; p = NextPrime[p], {n2}]; Print[{n, c}], {n, 1, 9}];

CROSSREFS

Cf. A006567 Emirps (primes whose reversal is a different prime).

Sequence in context: A110046 A027380 A058289 this_sequence A146977 A068623 A155578

Adjacent sequences: A152011 A152012 A152013 this_sequence A152015 A152016 A152017

KEYWORD

more,nonn,base

AUTHOR

Zak Seidov (zakseidov(AT)yahoo.com), Nov 19 2008

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 December 17 23:40 EST 2009. Contains 171025 sequences.


AT&T Labs Research