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!)
A261511 Twin primes with both terms having distinct digits in descending order. 0
3, 5, 7, 41, 43, 71, 73, 641, 643, 76541, 76543, 87641, 87643 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

Numbers in this list are the pairs of twin primes listed in A052014 with both terms having distinct digits in descending order

LINKS

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

MATHEMATICA

dsc[n_] := 0 > Max@ Differences@ IntegerDigits@n; Union@ Flatten@ Select[ Partition[ Prime@ Range@ 9000, 2, 1], #[[2]] - #[[1]] == 2 && And @@ dsc /@ # &] (* Giovanni Resta, Aug 26 2015 *)

PROG

(PARI) lista(nn=100000) = {v = []; forprime(p=2, nn, if (isprime(p+2) && (d=digits(p)) && (vecsort(d, , 12)==d) && (dd=digits(p+2)) && (vecsort(dd, , 12)==dd), v = concat(v, p); v = concat(v, p+2)); ); vecsort(v, , 8); } \\ Michel Marcus, Aug 23 2015

CROSSREFS

Cf. A001097, A052014.

Sequence in context: A037287 A163797 A130536 * A146972 A102742 A089044

Adjacent sequences:  A261508 A261509 A261510 * A261512 A261513 A261514

KEYWORD

nonn,easy,fini,full,base

AUTHOR

Paolo Omodei-Zorini, Aug 22 2015

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 September 21 14:54 EDT 2020. Contains 337272 sequences. (Running on oeis4.)