login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A107636
Lesser prime in pair prime(k) +/- k for some k.
1
3, 7, 43, 139, 251, 683, 1549, 2273, 2393, 2731, 3217, 3529, 3943, 4339, 4723, 4799, 4909, 5531, 5801, 7907, 9421, 10009, 11549, 12263, 12791, 13441, 14011, 14683, 15559, 18089, 19087, 20921, 22271, 22391, 23279, 24001, 24107, 24767, 24809, 26681, 26861, 27793
OFFSET
1,1
FORMULA
a(n) = prime(A064403(n)) - A064403(n).
EXAMPLE
a(1) = 3 because A064403(1) = 4 and prime(4) - 4 = 7 - 4 = 3.
MATHEMATICA
R=3000; L=Select[Range[R], AllTrue[Prime[#]+{#, -#}, PrimeQ]&]; Prime/@L-L (* James C. McMahon, Feb 18 2024 *)
CROSSREFS
Cf. A064403 (values of k), A107637, A143794 (prime(k)).
Sequence in context: A282178 A101208 A050633 * A303160 A258435 A074268
KEYWORD
nonn
AUTHOR
Zak Seidov, May 19 2005
STATUS
approved