OFFSET
1,1
COMMENTS
There are exactly 510 four-digit primes with all distinct digits, so the sequence of differences is finite as well.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..509
EXAMPLE
a(1)=10 because the first and second four-digit primes with all distinct digits are 1039, 1049 and difference between them is 10.
MATHEMATICA
se=Select[Range[1039, 9871, 2], Length[Union[IntegerDigits[ # ]]]==4&&PrimeQ[ # ]&]; Flatten[Table[{se[[i+1]]-se[[i]]}, {i, 509}]]
Differences[Select[Prime[Range[169, 1229]], Length[Union[ IntegerDigits[#]]] == 4&]] (* Harvey P. Dale, Oct 11 2015 *)
CROSSREFS
The first differences of the A074673. For 3-digit distinct-digit primes, see A074675, A074676. For 5-digit distinct-digit primes, see A074671, A074672. For 6-digit distinct-digit primes, see A074669, A074670. For 7-digit distinct-digit primes, see A074667, A074668. For 8-digit distinct-digit primes, see A074665, A074666.
KEYWORD
fini,full,nonn,base
AUTHOR
Zak Seidov, Aug 30 2002
STATUS
approved
