A031930 Lower prime of a difference of 12 between consecutive primes.
199, 211, 467, 509, 619, 661, 797, 997, 1201, 1237, 1307, 1459, 1499, 1511, 1531, 1709, 1789, 1811, 1889, 2069, 2099, 2297, 2399, 2447, 2579, 2621, 2777, 2927, 3049, 3067, 3169, 3191, 3259, 3331, 3347, 3499, 3559, 3659, 3931, 3989
Offset: 1
Keywords
Examples
199 is a term as the next prime is 199 + 12 = 211. 211 is also a term since the next prime is 211 + 12 = 223. But 223 is not a term since the next prime is 227, and 223 + 12 = 235 = 5 * 47.
Links
- Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
- Index entries for primes, gaps between
Programs
-
Magma
[p: p in PrimesUpTo(4000) | NextPrime(p)-p eq 12]; // Bruno Berselli, Apr 09 2013
-
Mathematica
Transpose[Select[Partition[Prime[Range[600]], 2, 1], Last[#] - First[#] == 12 &]][[1]] (* Harvey P. Dale, Apr 07 2013 *)
-
PARI
is(n)=nextprime(n+1)==n+12 && isprime(n) \\ Charles R Greathouse IV, Jul 02 2013
Formula
a(n) = prime(A320704(n)). - R. J. Mathar, Apr 30 2024
Comments