login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A296520
Multidigit primes in which the largest digit appears only once.
0
13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 211, 223, 227, 229, 239, 241, 251, 257, 263, 269, 271
OFFSET
1,1
EXAMPLE
In 13 the last digit is the largest, in 131 the middle digit and in 41 the first digit.
MATHEMATICA
Reap[Do[p=Prime[k]; id=IntegerDigits[p]; If[Count[id, Max[id]]==1, Sow[p]], {k, 6, 100}]][[2, 1]]
(* Second program: *)
Select[Prime@ Range[5, 60], Last@ Select[DigitCount[#], # > 0 &] == 1 &] (* Michael De Vlieger, Dec 14 2017 *)
CROSSREFS
A156666 is a subsequence (except that the single-digit primes are included).
Sequence in context: A132077 A235154 A045921 * A334391 A334321 A379930
KEYWORD
base,nonn
AUTHOR
Zak Seidov, Dec 14 2017
STATUS
approved