OFFSET
1,2
COMMENTS
Sum and difference of any of two consecutive numbers are prime numbers: 5-2=3; 5+2=7, 230-227=3; 230+227=457, 233-230=3; 233+230=463,...
I assume that here and in most of the similar sequences from the same author there is an implicit assumption that we want the "Lexicographically earliest infinite sequence of distinct positive numbers" that satisfies the stated condition. - N. J. A. Sloane, Apr 20 2022
MATHEMATICA
a=0; b=2; lst={a, b}; Do[If[PrimeQ[n-b]&&PrimeQ[n+b], AppendTo[lst, n]; a=b; b=n], {n, 3, 7!}]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jan 10 2009
EXTENSIONS
NAME adapted to offset. - R. J. Mathar, Jun 19 2021
STATUS
approved