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

 

Logo

Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing.
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A171043 In the sequence of prime numbers, replace all the '8' digits with '2' and vice versa. 3
8, 3, 5, 7, 11, 13, 17, 19, 83, 89, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 23, 29, 97, 101, 103, 107, 109, 113, 187, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 121, 191, 193, 197, 199, 811, 883, 887, 889, 833, 839, 841, 851, 857, 863 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

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

MATHEMATICA

FromDigits[IntegerDigits[#]/.{8->p, 2->q}/.{p->2, q->8}]&/@ Prime[ Range[60]] (* Harvey P. Dale, Nov 30 2011 *)

PROG

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

CROSSREFS

Sequence in context: A019728 A265183 A113476 * A124599 A005601 A321098

Adjacent sequences:  A171040 A171041 A171042 * A171044 A171045 A171046

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 December 7 05:14 EST 2019. Contains 329839 sequences. (Running on oeis4.)