[go: up one dir, main page]

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”).

A029709
Numbers k such that k-th and (k+1)st primes differ by 4.
31
4, 6, 8, 12, 14, 19, 22, 25, 27, 29, 31, 38, 44, 48, 50, 59, 63, 65, 70, 75, 78, 85, 88, 90, 93, 95, 112, 117, 122, 131, 134, 136, 143, 147, 149, 151, 153, 155, 159, 163, 169, 181, 183, 198, 207, 211, 213, 224, 226, 229, 235, 237, 244, 247, 249, 251
OFFSET
1,1
COMMENTS
Positions of 4 in A001223. - Zak Seidov, Apr 28 2015
LINKS
N. J. A. Sloane and K. D. Bajpai, Table of n, a(n) for n = 1..10213 (first 56 terms from N. J. A. Sloane)
FORMULA
A029710(n) = prime(a(n)). - R. J. Mathar, Apr 30 2024
MATHEMATICA
Select[Range[2, 300], 4 == (Prime[# + 1] - Prime[#]) &] (* Vincenzo Librandi, Apr 28 2015 *)
PROG
(Magma) [n: n in [0..300] | NthPrime(n+1) - NthPrime(n) eq 4]; // Vincenzo Librandi, Apr 28 2015
CROSSREFS
KEYWORD
nonn
STATUS
approved