OFFSET
1,1
COMMENTS
2, and primes congruent to 17 mod 30. - Robert Israel, Jan 19 2016
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
FORMULA
{2} UNION A039949. - R. J. Mathar, Jul 20 2008
MAPLE
select(isprime, [2, seq(i, i=17..1000, 30)]); # Robert Israel, Jan 19 2016
MATHEMATICA
Select[Prime[Range[400]], MemberQ[{2}, Mod[#, 15]]&] (* Vincenzo Librandi, Aug 15 2012 *)
Select[Range[2, 2500, 15], PrimeQ] (* Harvey P. Dale, Dec 08 2012 *)
PROG
(Magma) [ p: p in PrimesUpTo(5000) | p mod 15 eq 2 ]; // Vincenzo Librandi, Apr 19 2011
(PARI) lista(nn) = for(n=0, nn, if(ispseudoprime(p=15*n+2), print1(p, ", "))); \\ Altug Alkan, Jan 19 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jul 11 2008
STATUS
approved