login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A240696 Prime numbers n such that replacing each digit d in the decimal expansion of n with its 9's complement produces a prime. 0
2, 7, 97, 997, 99999999999999997 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

a(n) = {2} union {primes of the form 10^n - 3} = {2} union {A093172}.

Primes p such that A061601(p) is also prime.

The next term has 140 digits.

LINKS

Table of n, a(n) for n=1..5.

EXAMPLE

997 is in the sequence because 997 becomes (002) = 2, which is prime.

MATHEMATICA

lst={}; f[n_]:=Block[{a=IntegerDigits[Prime[n]], b="", k=1, l}, l=Length[a]; While[k<l+1, b=StringJoin[b, ToString[9-a[[k]]]]; k++]; ToExpression[b]]; Do[If[PrimeQ[f[n]], AppendTo[lst, Prime[n]]], {n, 1, 10^6}]; lst

CROSSREFS

Cf. A093172, A173833.

Sequence in context: A112290 A072059 A308961 * A102344 A087589 A002812

Adjacent sequences:  A240693 A240694 A240695 * A240697 A240698 A240699

KEYWORD

nonn,base

AUTHOR

Michel Lagneau, Apr 10 2014

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 25 18:32 EDT 2021. Contains 346291 sequences. (Running on oeis4.)