The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A096985 Numbers k such that k*k! - NextPrime(k) is prime. 1
3, 5, 8, 10, 12, 13, 23, 26, 30, 33, 38, 114, 162, 219, 265, 268, 277, 344, 463, 651, 877, 1128, 2466, 2594, 4828, 6512 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
For a(23), the corresponding value of k*k! - NextPrime(k) has more than 6239 digits.
LINKS
EXAMPLE
3 is in the sequence because 3*3! - 5 = 13 is prime.
8 is in the sequence because 8*8! - 11 = 322549 is prime.
MATHEMATICA
<< NumberTheory`NumberTheoryFunctions`; v={}; Do[If[PrimeQ [n*n!-NextPrime[n]], v=Append[v, n]; Print[v]], {n, 2150}]
Select[Range[900], PrimeQ[# #!-NextPrime[#]]&] (* The program generates the first 21 terms of the sequence. To select more, increase the Range constant but the program may take a long time to run. *) (* Harvey P. Dale, Aug 16 2023 *)
CROSSREFS
Sequence in context: A189377 A073608 A155945 * A206909 A138829 A003265
KEYWORD
nonn,hard,more
AUTHOR
Farideh Firoozbakht, Jul 31 2004
EXTENSIONS
a(23)-a(24) from Ryan Propper, Jan 01 2008
a(25)-a(26) from Michael S. Branicky, Aug 21 2023
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 May 13 18:22 EDT 2024. Contains 372522 sequences. (Running on oeis4.)