Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A038805
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A038805 Difference between last prime < 10^n and 10^n is a record high. +0
2
1, 4, 9, 21, 24, 34, 56, 66, 92, 100, 112, 117, 135, 180, 260, 349, 387, 393, 411, 574, 617, 787, 1209 (list; graph; listen)
OFFSET

1,2

EXAMPLE

For a(19)=411, the difference is 4433 and no other n <= 540 exceeds that difference.

MATHEMATICA

PrevPrim[n_] := Block[{k = n - 1}, While[ !PrimeQ[k], k-- ]; k]; d = 0; k = 1; Do[ While[f = 10^k - PrevPrim[10^k]; d >= f, k++ ]; d = f; Print[k], {n, 1, 50}]

CROSSREFS

Cf. A033874.

Sequence in context: A108870 A111587 A130045 this_sequence A120535 A033944 A038415

Adjacent sequences: A038802 A038803 A038804 this_sequence A038806 A038807 A038808

KEYWORD

base,nonn

AUTHOR

Jeff Burch (gburch(AT)erols.com)

EXTENSIONS

Edited and extended by Robert G. Wilson v (rgwv(AT)rgwv.com), Jun 18 2002

a(23) from Robert G. Wilson v (rgwv(AT)rgwv.com), Jan 10 2007

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified July 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research