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”).

A023253
Primes that remain prime through 2 iterations of the function f(x) = 5x + 4.
3
5, 17, 83, 101, 131, 251, 257, 263, 389, 419, 461, 467, 521, 587, 797, 809, 1217, 1319, 1511, 1721, 1847, 1907, 2141, 2531, 2579, 2693, 2699, 3623, 4079, 4217, 4253, 4283, 4493, 4673, 5333, 5507, 5711, 6011, 6089, 6353, 6599, 6761, 6803, 6947, 6983, 7013
OFFSET
1,1
COMMENTS
Primes p such that 5*p+4 and 25*p+24 are also primes. - Vincenzo Librandi, Aug 04 2010
FORMULA
a(n) == 5 (mod 6). - John Cerkan, Sep 13 2016
MATHEMATICA
Select[Prime[Range[1000]], AllTrue[Rest[NestList[5#+4&, #, 2]], PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Oct 19 2019 *)
PROG
(Magma) [n: n in [0..100000] | IsPrime(n) and IsPrime(5*n+4) and IsPrime(25*n+24)] // Vincenzo Librandi, Aug 04 2010
CROSSREFS
Subsequence of A023218.
Sequence in context: A149751 A303713 A188231 * A149752 A149753 A149754
KEYWORD
nonn
STATUS
approved