OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
EXAMPLE
13 is in the sequence because 13*6-5=73 and 13*6+5=83 are both prime.
MATHEMATICA
Select[Prime[Range[2300]], PrimeQ[# (# - 1)/2 - 5] && PrimeQ[# (# - 1)/2 + 5] &]
PROG
(PARI) forprime(p=2, 10^6, my(b=binomial(p, 2)); if(isprime(b-5)&isprime(b+5), print1(p, ", "))); /* Joerg Arndt, Apr 10 2013 */
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Aug 17 2009
EXTENSIONS
Edited by R. J. Mathar, Aug 20 2009
Mathematica code adapted to the definition by Bruno Berselli, Apr 10 2013
STATUS
approved