[go: up one dir, main page]

login
A238699
Primes p such that 2p + 3 and 4p + 3 are both prime.
1
2, 5, 7, 17, 19, 47, 67, 89, 157, 227, 229, 307, 349, 439, 467, 487, 509, 599, 647, 797, 929, 1039, 1187, 1217, 1237, 1259, 1307, 1427, 1447, 1567, 1789, 2027, 2309, 2467, 2539, 2707, 2789, 2819, 3167, 3457, 3499, 3659, 3877, 3919, 4057, 4079, 4157, 4289, 4297
OFFSET
1,1
COMMENTS
Intersection of A023204 and A023213.
Primes in A115334.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
89 is in the sequence because 2*89 + 3 = 181 and 4*89 + 3 = 359 are both prime.
MATHEMATICA
Select[Prime[Range[600]], AllTrue[{2#+3, 4#+3}, PrimeQ]&] (* Harvey P. Dale, Dec 24 2023 *)
PROG
(Magma) [p: p in PrimesUpTo(4500) | IsPrime(2*p+3) and IsPrime(4*p+3)]; // Bruno Berselli, Mar 03 2014
(PARI) select(p->isprime(2*p+3)&&isprime(4*p+3), primes(1000)) \\ Charles R Greathouse IV, Mar 06 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Lopatin, Mar 03 2014, following a suggestion by Juri-Stepan Gerasimov
EXTENSIONS
Edited by Bruno Berselli, Mar 03 2014
STATUS
approved