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

%I #17 Jun 20 2023 15:52:29

%S 3,5,7,11,13,17,19,23,29,31,37,47,53,59,67,71,73,79,89,97,101,103,107,

%T 109,113,127,131,137,139,149,151,157,167,173,179,191,193,197,199,223,

%U 227,229,233,239,251,257,269,271,277,293,307,311,313,317,331,337,347

%N Primes with odd largest digit.

%H Harvey P. Dale, <a href="/A155058/b155058.txt">Table of n, a(n) for n = 1..2000</a>

%e 181 is prime but has 8 as its largest digit, so 181 is not a term.

%e 191 is prime and has 9 as its largest digit, so 191 is a term.

%t Select[Prime[Range[100]],OddQ[Max[IntegerDigits[#]]]&] (* _Harvey P. Dale_, Jun 20 2023 *)

%o (PARI) isok(p) = isprime(p) && (vecmax(digits(p)) % 2); \\ _Michel Marcus_, Feb 18 2021

%Y Cf. A000040, A154767.

%K nonn,base,less

%O 1,1

%A _Juri-Stepan Gerasimov_, Jan 19 2009

%E 181 replaced with 191 by _Ray Chandler_, Jan 31 2009

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 September 13 00:40 EDT 2024. Contains 375857 sequences. (Running on oeis4.)