The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A155058 Primes with odd largest digit. 2
3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 47, 53, 59, 67, 71, 73, 79, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 167, 173, 179, 191, 193, 197, 199, 223, 227, 229, 233, 239, 251, 257, 269, 271, 277, 293, 307, 311, 313, 317, 331, 337, 347 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
181 is prime but has 8 as its largest digit, so 181 is not a term.
191 is prime and has 9 as its largest digit, so 191 is a term.
MATHEMATICA
Select[Prime[Range[100]], OddQ[Max[IntegerDigits[#]]]&] (* Harvey P. Dale, Jun 20 2023 *)
PROG
(PARI) isok(p) = isprime(p) && (vecmax(digits(p)) % 2); \\ Michel Marcus, Feb 18 2021
CROSSREFS
Sequence in context: A225670 A165255 A223036 * A007703 A002556 A130101
KEYWORD
nonn,base,less
AUTHOR
EXTENSIONS
181 replaced with 191 by Ray Chandler, Jan 31 2009
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 21 05:34 EDT 2024. Contains 372728 sequences. (Running on oeis4.)