OFFSET
1,2
EXAMPLE
2 is a term because the 2nd primorial is 6, and both 2*36-1 & 2*36+1 are primes, with corresponding k=2.
PROG
(PARI) isok(n) = {my(q = nextprime(prime(n)+1)); for (k=1, q, x = k*prod(i=1, n, prime(i))^2; if (isprime(x-1) && isprime(x+1), return (1)); ); 0; } \\ Michel Marcus, Nov 14 2018
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Pierre CAMI, Oct 01 2004
STATUS
approved