A074671 Five-digit distinct-digit primes.
10243, 10247, 10253, 10259, 10267, 10273, 10289, 10357, 10369, 10427, 10429, 10453, 10457, 10459, 10463, 10487, 10529, 10567, 10589, 10597, 10627, 10639, 10657, 10687, 10723, 10729, 10739, 10753, 10789, 10837, 10847, 10853, 10859, 10867, 10937, 10957
Offset: 1
Examples
a(1)=10243 and a(2529)=98731 because these are the first and the last 5-digit primes with all distinct digits.
Links
- Nathaniel Johnston, Table of n, a(n) for n = 1..2529 (full sequence)
Crossrefs
Programs
-
Mathematica
Select[Range[10243, 98731, 2], Length[Union[IntegerDigits[ # ]]]==5&&PrimeQ[ # ]&] Select[Prime[Range[1230,9592]],Max[DigitCount[#]]==1&] (* Harvey P. Dale, Mar 16 2016 *)
-
PARI
is(n)=isprime(n) && #digits(n)==5 && #Set(digits(n))==5 \\ Charles R Greathouse IV, Feb 11 2017
Comments