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
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
KEYWORD
nonn,easy
AUTHOR
Amarnath Murthy, Apr 23 2001
EXTENSIONS
More terms from Robert G. Wilson v, May 10 2001
STATUS
approved