

A061238


Prime numbers == 2 (mod 9).


14



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
(list;
graph;
refs;
listen;
history;
text;
internal format)



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*n7.  Vladimir Joseph Stephan Orlovsky, Jul 13 2011


LINKS

Daniel Starodubtsev, Table of n, a(n) for n = 1..10000


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

Cf. A061237..A061242.
Sequence in context: A213522 A136317 A090389 * A046500 A062123 A345213
Adjacent sequences: A061235 A061236 A061237 * A061239 A061240 A061241


KEYWORD

nonn,easy


AUTHOR

Amarnath Murthy, Apr 23 2001


EXTENSIONS

More terms from Robert G. Wilson v, May 10 2001


STATUS

approved



