OFFSET
1,1
COMMENTS
Sequence provides all primes p such that p + nextprime(p) is divisible by 3 (see Crossrefs).
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..10000
EXAMPLE
p=19 is in this sequence because 19+23 = 42 is divisible by 6.
MATHEMATICA
Prime@Select[Range[200], Mod[Prime[#] + Prime[# + 1], 6]==0 &]
Select[Partition[Prime[Range[100]], 2, 1], Divisible[Total[#], 6]&][[All, 1]] (* Harvey P. Dale, Jan 20 2018 *)
PROG
(Magma) [p: p in PrimesUpTo(500) | (p+NextPrime(p)) mod 6 eq 0];
(PARI) forprime(p=1, 10^3, if(!((p+nextprime(p+1))%6), print1(p, ", "))) \\ Derek Orr, Jan 30 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jan 21 2015
STATUS
approved