login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A143713
Numbers k such that k! - prime(k-1) yields a prime.
0
3, 4, 5, 6, 10, 22, 31, 92, 174, 237, 886, 1075, 1357, 2428, 3700, 6319
OFFSET
1,1
MATHEMATICA
Select[Range[2, 1000], PrimeQ[#!-Prime[#-1]]&] (* Harvey P. Dale, Oct 31 2013 *)
PROG
(PARI) for(n=2, 1000, if(isprime(n! - prime(n-1)), print1(n, ", ")))
CROSSREFS
Cf. A064401.
Sequence in context: A103033 A099561 A110300 * A271821 A261459 A215249
KEYWORD
nonn,more
AUTHOR
EXTENSIONS
a(11) from Harvey P. Dale, Oct 31 2013
a(12)-a(15) from Metin Sariyar, Sep 27 2019
a(16) from Michael S. Branicky, Jun 08 2023
STATUS
approved