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

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A185201 10^n - second largest prime less than 10^n. 1
 5, 11, 9, 33, 11, 21, 27, 29, 71, 57, 53, 39, 137, 29, 53, 83, 23, 33, 57, 27, 113, 71, 53, 303, 321, 249, 107, 261, 53, 17, 81, 119, 47, 513, 237, 179, 123, 123, 173, 27, 203, 137, 119, 77, 119, 147, 83, 47, 183, 161, 333, 339, 611, 579 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 REFERENCES D. E. Knuth, The Art of Computer Programming, Second Edition, Vol. 2, Seminumerical Algorithms, Chapter 4.5.4 Factoring into Primes, Table 1, Page 390, Addison-Wesley, Reading, MA, 1981. LINKS Robert Israel, Table of n, a(n) for n = 1..1000 FORMULA a(n) = 10^n - precprime(precprime(10^n)-1) EXAMPLE a(1)=5 because precprime(10)=7, and precprime(6)=5. MAPLE seq(10^n - prevprime(prevprime(10^n)), n=1..100); # Robert Israel, May 28 2017 MATHEMATICA Table[10^n - NextPrime[10^n, -2], {n, 1, 50}] (* G. C. Greubel, Jun 24 2017 *) CROSSREFS Cf. A033874. Sequence in context: A356480 A075261 A254766 * A112956 A258995 A335554 Adjacent sequences: A185198 A185199 A185200 * A185202 A185203 A185204 KEYWORD nonn AUTHOR Washington Bomfim, Jan 24 2012 STATUS approved

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.

Last modified June 9 01:20 EDT 2023. Contains 363165 sequences. (Running on oeis4.)