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!)
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
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: A132959 A360230 A253811 * A037774 A037662 A116979
KEYWORD
nonn
AUTHOR
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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 18:05 EDT 2024. Contains 371798 sequences. (Running on oeis4.)