OFFSET
1,1
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 1..56 (terms a(1)-a(50) from Martin Ehrenstein)
EXAMPLE
See A371002.
PROG
(PARI) a371001_2(upto) = {my(n=0); forcomposite (k=4, upto, for (j=1, oo, if (isprime(k+j*j), if (j>n, print1([k, j-1], ", "); n=j); break)))};
\\ change [k, j-1] in print1 to k or j-1 to mute the results for the other sequence
a371001_2(5000000)
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Mar 07 2024
STATUS
approved