A214506 Last digit of the smallest prime number in base 10 with n digits.
2, 1, 1, 9, 7, 3, 3, 9, 7, 7, 9, 3, 9, 7, 1, 7, 1, 3, 3, 1, 9, 7, 9, 7, 7, 3, 7, 3, 1, 9, 7, 3, 9, 1, 3, 9, 7, 3, 3, 3, 1, 9, 3, 7, 1, 9, 1, 3, 3, 9, 1, 1, 7, 1, 1, 1, 3, 9, 9, 9, 7, 3, 7, 1, 7, 9, 9, 9, 9, 9, 3, 3, 9, 9, 7, 9, 3, 1, 3, 9, 9, 3, 1, 7, 1, 3
Offset: 1
Programs
-
Mathematica
Table[Mod[NextPrime[10^n],10],{n,0,30}] (* Harvey P. Dale, Jan 25 2013 *)
Formula
a(1) = 2, and a(n) = A033873(n) mod 10 for n>1.
a(n) = A003617(n) mod 10. - Michel Marcus, Aug 06 2013
Extensions
More terms from Harvey P. Dale, Jan 25 2013
Comments