A317510 Numbers (4p+1)/3 where p is a Sophie Germain prime p > 3.
7, 15, 31, 39, 55, 71, 111, 119, 151, 175, 231, 239, 255, 311, 319, 335, 375, 391, 479, 559, 575, 591, 655, 679, 791, 855, 871, 879, 911, 959, 991, 1015, 1079, 1215, 1271, 1351, 1359, 1375, 1399, 1471, 1631, 1639, 1719, 1879, 1919, 1935, 1975, 1999, 2015, 2079, 2111, 2135, 2311, 2415, 2519, 2535, 2575, 2631
Offset: 1
Keywords
Links
- Muniru A Asiru, Table of n, a(n) for n = 1..5000
Programs
-
GAP
a:=[];; for p in [3..2000] do if IsPrime(p) and IsPrime(2*p+1) then Add(a,(4*p+1)/3); fi; od; a; # Muniru A Asiru, Aug 28 2018
-
Mathematica
lst = {}; Do[If[PrimeQ[p] && PrimeQ[2 p + 1], AppendTo[lst, (4 p + 1)/3]], {p, 5, 2*10^3}]; lst 4 (Select[Prime@Range[3, 300], PrimeQ[2 # + 1] &] + 1)/3 - 1 (* Robert G. Wilson v, Jul 30 2018 *)
-
PARI
lista(nn) = {forprime (p=5, nn, if (isprime(2*p+1), print1((4*p+1)/3, ", ")););} \\ Michel Marcus, Aug 27 2018
Comments