OFFSET
1,1
EXAMPLE
a(1) = 4265, because the prime 25589 = 6*4265 - 1 can be written as 157*163 - 2, with 157 and 163 being consecutive primes.
PROG
(PARI) a342565(plim)={my(p1=5); forprime(p2=7, plim, my(p=p1*p2-2); if(isprime(p), print1((p+1)/6, ", ")); p1=p2)};
a342565(5400)
(Python)
from primesieve.numpy import n_primes
from numbthy import isprime
primesarray = numpy.array(n_primes(10000, 1))
for i in range (0, 9999):
totest = int(primesarray[i] * primesarray[i+1] - 2)
if (isprime(totest)) and (((totest+1)%6) == 0):
print((totest+1)//6) # Karl-Heinz Hofmann, Jun 20 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Hugo Pfoertner, Jun 20 2021
STATUS
approved