OFFSET
1,2
EXAMPLE
Of the primes < 10^2, there are 7 that end in a 3. Since 3 is the most common digit to end with (see A244191), then a(2) = 7.
PROG
(Python)
import sympy
from sympy import isprime
def prend1(d, n):
..lst = [ ]
..for k in range(10**n):
....if isprime(k):
......lst.append((k%10**d))
..new = 0
..newlst = [ ]
..for i in range(10**(d-1), 10**d):
....new = lst.count(i)
....newlst.append(new)
..return max(newlst)
n = 2
while n < 10:
..print(prend1(1, n), end=', ')
..n += 1
CROSSREFS
KEYWORD
nonn,base,hard,more
AUTHOR
Derek Orr, Jun 24 2014
EXTENSIONS
a(8)-a(14) from Hiroaki Yamanouchi, Jul 11 2014
STATUS
approved