login
This site is supported by donations to The OEIS Foundation.

 

Logo

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A037154 Largest prime < n!-1. 1
3, 19, 113, 709, 5023, 40289, 362867, 3628789, 39916787, 479001587, 6227020777, 87178291183, 1307674367953, 20922789887947, 355687428095941, 6402373705727959, 121645100408831899 (list; graph; refs; listen; history; text; internal format)
OFFSET

3,1

LINKS

Table of n, a(n) for n=3..19.

MATHEMATICA

NextPrime[#, -1]&/@(Range[3, 25]!-1) (* Harvey P. Dale, May 04 2014 *)

PROG

(PARI) A037154(n) = {local(r); if(n<3, 1, r=n!-2; while(!isprime(r), r--); r)} \\ Michael B. Porter, Feb 02 2010

CROSSREFS

Sequence in context: A162354 A132959 A253811 * A037774 A037662 A116979

Adjacent sequences:  A037151 A037152 A037153 * A037155 A037156 A037157

KEYWORD

nonn

AUTHOR

Jud McCranie

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 January 19 18:16 EST 2019. Contains 319309 sequences. (Running on oeis4.)