cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A096986 Numbers k such that k*k! + (smallest prime > k) is prime.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 23, 29, 30, 31, 40, 164, 176, 189, 218, 370, 597, 603, 1473, 1901, 2176, 2436, 2548, 2732, 4758, 5574
Offset: 1

Views

Author

Farideh Firoozbakht, Jul 31 2004

Keywords

Comments

Note that Maple, PARI etc. have different notions of what "next prime" means!
Next term is > 7500. - Jacques Tramu, Sep 12 2018
Next term is > 10^4. - Michael S. Branicky, Aug 09 2024

Examples

			8 is in the sequence because 8*8!+ 11 is prime.
		

Crossrefs

Programs

  • Mathematica
    << NumberTheory`NumberTheoryFunctions`;v={};Do[If[PrimeQ [n*n!+NextPrime[n]], v=Append[v, n];Print[v]], {n, 2400}]
  • PARI
    isok(n) = isprime(n*n! + nextprime(n+1)); \\ Michel Marcus, Sep 13 2018

Extensions

a(24)-a(27) from Jacques Tramu, Sep 12 2018
a(24) corrected by Michael S. Branicky, Aug 09 2024
Showing 1-1 of 1 results.