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

A061238
Prime numbers == 2 (mod 9).
15
2, 11, 29, 47, 83, 101, 137, 173, 191, 227, 263, 281, 317, 353, 389, 443, 461, 479, 569, 587, 641, 659, 677, 821, 839, 857, 911, 929, 947, 983, 1019, 1091, 1109, 1163, 1181, 1217, 1289, 1307, 1361, 1433, 1451, 1487, 1523, 1559, 1613, 1667, 1721, 1811, 1847
OFFSET
1,1
COMMENTS
A010888(a(n)) = 2. - Reinhard Zumkeller, Feb 25 2005
Except for the first term "2", all current prime numbers are of the form: 18*n-7. - Vladimir Joseph Stephan Orlovsky, Jul 13 2011
LINKS
MATHEMATICA
Select[ Range[ 2000 ], PrimeQ[ # ] && Mod[ #, 9 ] == 2 & ]
Join[{2}, Select[Range[11, 5000, 18], PrimeQ]] (* Vladimir Joseph Stephan Orlovsky, Jul 13 2011 *) (* ~30 times faster *)
PROG
(Magma)[ p: p in PrimesUpTo(2000) | p mod 9 in {2} ]; // Vincenzo Librandi, Dec 25 2010
(PARI) select(n->n%9==2, primes(400)) \\ Charles R Greathouse IV, May 27 2014
CROSSREFS
Sequence in context: A213522 A136317 A090389 * A046500 A062123 A345213
KEYWORD
nonn,easy
AUTHOR
Amarnath Murthy, Apr 23 2001
EXTENSIONS
More terms from Robert G. Wilson v, May 10 2001
STATUS
approved