A298252 Even integers n such that n-3 is prime.
6, 8, 10, 14, 16, 20, 22, 26, 32, 34, 40, 44, 46, 50, 56, 62, 64, 70, 74, 76, 82, 86, 92, 100, 104, 106, 110, 112, 116, 130, 134, 140, 142, 152, 154, 160, 166, 170, 176, 182, 184, 194, 196, 200, 202, 214, 226, 230, 232, 236, 242, 244, 254, 260, 266, 272, 274, 280
Offset: 1
Examples
a(1)=6 because 6-3=3; prime, and no smaller even number has this property; also a(1)=A113935(2)=6. a(2)=8 because 8-3=5 is prime; also A113935(3)=8. 12 is not in the sequence because 12-3 = 9, composite.
Links
- Muniru A Asiru, Table of n, a(n) for n = 1..5000
Programs
-
GAP
Filtered([1..300],n->IsEvenInt(n) and IsPrime(n-3)); # Muniru A Asiru, Mar 23 2018
-
Magma
[NthPrime(n+1) +3: n in [1..70]]; // G. C. Greubel, May 21 2019
-
Maple
N:=200 for n from 6 to N by 2 do if isprime(n-3) then print(n); end if end do
-
Mathematica
Select[2 Range@125, PrimeQ[# - 3] &] (* Robert G. Wilson v, Jan 15 2018 *) Select[Prime[Range[100]]+3,EvenQ] (* Harvey P. Dale, Mar 07 2022 *)
-
PARI
a(n) = prime(n + 1) + 3 \\ David A. Corneth, Mar 23 2018
-
Sage
[nth_prime(n+1) +3 for n in (1..70)] # G. C. Greubel, May 21 2019
Formula
a(n) = A113935(n+1), n>=1.
a(n) = prime(n + 1) + 3 = A113935(n + 1). - David A. Corneth, Mar 23 2018
Comments