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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A171039 In the sequence of prime numbers, replace all the '7' digits with '5' and vice versa. 3
2, 3, 7, 5, 11, 13, 15, 19, 23, 29, 31, 35, 41, 43, 45, 73, 79, 61, 65, 51, 53, 59, 83, 89, 95, 101, 103, 105, 109, 113, 125, 131, 135, 139, 149, 171, 175, 163, 165, 153, 159, 181, 191, 193, 195, 199, 211, 223, 225, 229, 233, 239, 241, 271, 275, 263 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 1..1000

MATHEMATICA

pq[n_]:=Module[{idn=IntegerDigits[n]}, FromDigits[idn/. {7->p, 5->q}/. {p->5, q->7}]]; pq/@Prime[Range[60]]  (* Harvey P. Dale, Apr 04 2011 *)

PROG

(PARI) a(n)=my(v=[0, 1, 2, 3, 4, 7, 6, 5, 8, 9]); subst(Pol(apply(k->v[k+1], digits(prime(n)))), 'x, 10) \\ Charles R Greathouse IV, Jul 26 2013

CROSSREFS

Sequence in context: A057218 A087387 A275205 * A063904 A297929 A221858

Adjacent sequences:  A171036 A171037 A171038 * A171040 A171041 A171042

KEYWORD

nonn,base,easy

AUTHOR

N. J. A. Sloane and Vincenzo Librandi, Sep 04 2010

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 20 22:20 EDT 2019. Contains 325189 sequences. (Running on oeis4.)