login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A069796 Prime(n) and prime(n+4) use the same digits. 4

%I #5 Dec 26 2015 18:11:56

%S 179,1091,1213,1279,3313,3637,4273,6637,8237,8293,8537,9137,9613,

%T 10937,12071,14071,15137,19237,19937,20639,21013,22817,22937,24091,

%U 24317,26713,28439,29137,29837,31379,32537,33037,33071,35339,36913,37117

%N Prime(n) and prime(n+4) use the same digits.

%H Harvey P. Dale, <a href="/A069796/b069796.txt">Table of n, a(n) for n = 1..1000</a>

%e 6637 is a member as the fourth next prime 6673 uses the same digits.

%t p = {0}; q = {1}; r = {1}; s = {1}; t = {1}; Do[ If[p == t, Print[ Prime[n - 5]]]; p = q; q = r; r = s; s = t; t = Sort[ IntegerDigits[ Prime[n]]], {n, 5 10^3}]

%t Transpose[Select[Partition[Prime[Range[5000]],5,1],Sort[ IntegerDigits[ First[#]]] == Sort[IntegerDigits[Last[#]]]&]][[1]] (* _Harvey P. Dale_, Dec 26 2015 *)

%Y Cf. A069793, A069567, A069794, A069795.

%K base,nonn

%O 1,1

%A _Amarnath Murthy_, Apr 09 2002

%E Edited, corrected and extended by _Robert G. Wilson v_, Apr 12 2002

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 18 23:41 EDT 2024. Contains 375284 sequences. (Running on oeis4.)