OFFSET
1,1
EXAMPLE
360*2/5=144, 139 and 149 are consecutive primes with gap 10, so a(1) = 360.
120*2*3/5=144, so a(2) = 120.
24*2*3*5/5=144, so a(3) = 24.
17*2*3*5*7/5=714, 709 and 719 are consecutive primes with gap 10, so a(4) = 17.
MATHEMATICA
a[n_] := Module[{k = 1, p = Product[Prime[i], {i, 1, n}]}, While[!(PrimeQ[k*p/5-5] && NextPrime[k*p/5-5] == k*p/5+5), k++]; k]; Array[a, 60] (* Amiram Eldar, Jul 17 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Aug 28 2004
STATUS
approved