OFFSET
1,1
COMMENTS
Subsequence of A105772. Except for the first term all others are congruent to 5 (mod 6) because 7*(6n+1)+2 is divisible by 3. - John Cerkan, Jul 08 2016
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000
EXAMPLE
3 is in the sequence because 7 * 3 + 2 = 23, which is prime.
5 is in the sequence because 7 * 5 + 2 = 37, which is prime.
7 is not in the sequence because 7 * 7 + 2 = 51 = 3 * 17.
MATHEMATICA
Select[Prime[Range[250]], PrimeQ[7# + 2] &] (* Alonso del Arte, Apr 08 2015 *)
PROG
(Magma) [n: n in [0..100000] | IsPrime(n) and IsPrime(7*n+2)]; // Vincenzo Librandi, Nov 19 2010
(PARI) lista(nn) = forprime(p=2, nn, if(isprime(7*p+2), print1(p, ", "))); \\ Altug Alkan, Jul 08 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved