OFFSET
1,1
COMMENTS
All repunit primes (A004022) are terms. There are no terms of prime p digit- length for p >= 11 unless p is a term of A004023 - in which case there is exactly one such term here, the repunit prime of length p. The smallest term whose digits are neither all the same nor all different is 100313. No term of digit-length 10 can have digits all different because such a term would be divisible by 3 (as 45, the sum of its digits, would be divisible by 3).
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
EXAMPLE
The prime 101 is not a term because it contains two 1's but only one 0. The
prime 127 is a term because it has one 1, one 2 and one 7.
MATHEMATICA
t={}; Do[p=Prime[n]; If[Length[DeleteDuplicates[Transpose[Tally[IntegerDigits[p]]][[2]]]]==1, AppendTo[t, p]], {n, 79}]; t (* Jayanta Basu, May 10 2013 *)
PROG
(Python)
from sympy import prime
A082646_list = []
for i in range(1, 10**5):
p = str(prime(i))
h = [p.count(d) for d in '0123456789' if d in p]
if min(h) == max(h):
A082646_list.append(int(p)) # Chai Wah Wu, Mar 06 2016
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Rick L. Shepherd, May 24 2003
STATUS
approved