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”).

A117815
Composite numbers at least one of whose decimal digits is prime.
3
12, 15, 20, 21, 22, 24, 25, 26, 27, 28, 30, 32, 33, 34, 35, 36, 38, 39, 42, 45, 50, 51, 52, 54, 55, 56, 57, 58, 62, 63, 65, 70, 72, 74, 75, 76, 77, 78, 82, 85, 87, 92, 93, 95, 102, 105, 112, 115, 117, 120, 121, 122, 123, 124, 125, 126, 128, 129, 130, 132, 133
OFFSET
1,1
LINKS
PROG
(Python)
from sympy import isprime
def ok(n): return set(str(n)) & set("2357") != set() and not isprime(n)
print([k for k in range(134) if ok(k)]) # Michael S. Branicky, Dec 15 2021
CROSSREFS
Supersequence of A117815.
Sequence in context: A115349 A196224 A163657 * A154390 A346608 A156683
KEYWORD
base,easy,nonn
AUTHOR
Giovanni Teofilatto, Apr 30 2006
EXTENSIONS
Corrected by Giovanni Teofilatto, May 12 2006
Name edited by Michael S. Branicky, Dec 15 2021
STATUS
approved