OFFSET
1,1
COMMENTS
Primes p such that p + nextprime(p) is divisible by 10 is the same as this sequence without the term 2. - Derek Orr, Jan 30 2015
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
p=29 is in this sequence because 29+31 = 60 is divisible by 5.
MATHEMATICA
Prime@Select[Range[300], Mod[Prime[#] + Prime[# + 1], 5]==0 &]
Transpose[Select[Partition[Prime[Range[200]], 2, 1], Divisible[Total[ #], 5]&]] [[1]] (* Harvey P. Dale, Feb 10 2015 *)
PROG
(Magma) [p: p in PrimesUpTo(1500) | (p+NextPrime(p)) mod 5 eq 0];
(PARI) forprime(p=1, 10^3, if(!((p+nextprime(p+1))%5), print1(p, ", "))) \\ Derek Orr, Jan 30 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jan 23 2015
STATUS
approved