login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A164623
Primes p such that p*(p-1)/2-5 and p*(p-1)/2+5 are also prime numbers.
1
13, 157, 673, 1069, 1117, 1153, 1213, 1597, 2029, 2089, 2437, 2713, 2833, 3613, 4057, 4909, 5653, 6337, 6529, 7549, 7993, 8053, 9613, 10789, 11497, 11689, 12073, 12373, 13309, 13669, 13789, 14173, 15289, 15937, 16249, 18097, 18637, 19249, 19993
OFFSET
1,1
COMMENTS
Primes A000040(k) such that A008837(k)+-5 are also prime numbers.
LINKS
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 */
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Edited by R. J. Mathar, Aug 20 2009
Mathematica code adapted to the definition by Bruno Berselli, Apr 10 2013
STATUS
approved