OFFSET
1,1
COMMENTS
Even numbers that are the sum of 5 and another prime, but not the sum of 3 and another prime. For n >= 1, a(n) - 5 = A049591(n), a(n) - 3 = A107986(n+1).
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
EXAMPLE
MAPLE
N:=100
for n from 8 to N by 2 do
if isprime(n-5) and not isprime(n-3) then print (n);
end if
end do
MATHEMATICA
Select[Range[6, 500, 2], And[PrimeQ[# - 5], ! PrimeQ[# - 3]] &] (* Michael De Vlieger, Jan 10 2018 *)
Select[Range[6, 500, 2], Boole[PrimeQ[# -{5, 3}]] == {1, 0} &] (* Harvey P. Dale, Jan 30 2024 *)
PROG
(PARI) isok(n) = !(n % 2) && isprime(n-5) && !isprime(n-3); \\ Michel Marcus, Jan 09 2018
(Magma) [n: n in [3..500] | IsPrime(n-5) and not IsPrime(n-3) and (n mod 2) eq 0]; // G. C. Greubel, May 21 2019
(Sage) [n for n in (3..500) if is_prime(n-5) and not is_prime(n-3) and (mod(n, 2)==0)] # G. C. Greubel, May 21 2019
(GAP) Filtered([8..500], k-> IsPrime(k-5) and not IsPrime(k-3) and (n mod 2)=0) # G. C. Greubel, May 21 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
David James Sycamore, Jan 08 2018
STATUS
approved