OFFSET
2,1
LINKS
Jinyuan Wang, Table of n, a(n) for n = 2..2000
Antonín Čejchan, Michal Křížek, and Lawrence Somer, On Remarkable Properties of Primes Near Factorials and Primorials, Journal of Integer Sequences, Vol. 25 (2022), Article 22.1.4.
FORMULA
PROG
(PARI) a(n) = {my(k = prod(j=1, n, prime(j))); p = k-precprime(k-2); if(isprime(p), primepi(p), 0); } \\ Jinyuan Wang, Oct 02 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Aug 30 2004
EXTENSIONS
Name edited by and more terms from Jinyuan Wang, Oct 02 2019
STATUS
approved