OFFSET
1,1
COMMENTS
A subsequence of A002386 (assuming that there is an n-digit term in A002386 for all values of n). - M. F. Hasler, Apr 28 2014
LINKS
Thomas R. Nicely, First occurrence prime gaps [For local copy see A000101]
FORMULA
a(n) = max { p in A002386 | nextprime(p) < 10^n } (under the assumption given in the comment). - M. F. Hasler, Apr 28 2014
EXAMPLE
a(3) = 887, the next prime is 907, 907-887=20 is the maximal possible difference of two 3-digit primes and no smaller pair exhibits this property.
MATHEMATICA
Table[Last[Sort[{#[[2]]-#[[1]], #[[1]], #[[2]]}&/@Partition[Prime[Range[PrimePi[10^i]+1, PrimePi[10^(i+1)]]], 2, 1]]][[2]], {i, 7}] (* Harvey P. Dale, Jan 23 2010 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Aug 15 2002
EXTENSIONS
Corrected error and added terms Harvey P. Dale, Jan 23 2010
a(9)-a(18) from Donovan Johnson, Nov 29 2010
STATUS
approved
