OFFSET
1,1
COMMENTS
The conjecture in A258141 asserts that any six consecutive positive integers contain at least a term of the current sequence.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 6 since 6 = 2^2 + 2 with 2 and 2*2+3 = 7 both prime.
a(2) = 7 since 7 = 2^2 + 3 with 2, 3, 2*2+3 all prime.
MATHEMATICA
n=0; Do[Do[If[PrimeQ[2Prime[k]+3]&&PrimeQ[m-Prime[k]^2], n=n+1; Print[n, " ", m]; Goto[aa]], {k, 1, PrimePi[Sqrt[m]]}];
Label[aa]; Continue, {m, 1, 141}]
Module[{pp=40}, Select[Union[#[[1]]^2+#[[2]]&/@Select[Tuples[ Prime[ Range[ pp]], 2], PrimeQ[2#[[1]]+3]&]], #<=Prime[pp]-4&]] (* Harvey P. Dale, Jul 24 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, May 22 2015
STATUS
approved