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!)
A080603 Primes such that deleting some digit yields a prime. 38
13, 17, 23, 29, 31, 37, 43, 47, 53, 59, 67, 71, 73, 79, 83, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 229, 233, 239, 241, 263, 269, 271, 283, 293, 307, 311, 313, 317, 331, 337, 347, 353, 359, 367 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Leading zeros are allowed in the number that appears after the digit is deleted, as in A080608. - Michael S. Branicky, Jan 28 2023
LINKS
MATHEMATICA
Q@n_:=AnyTrue[FromDigits@Delete[IntegerDigits@n, #]&/@Range@IntegerLength@n, PrimeQ]; Select[Prime@Range@500, Q@# &] (* Hans Rudolf Widmer, Jun 09 2024 *)
PROG
(Python)
from sympy import isprime
def ok(n):
if n < 10 or not isprime(n): return False
s = str(n)
si = (s[:i]+s[i+1:] for i in range(len(s)))
return any(isprime(int(t)) for t in si)
print([k for k in range(368) if ok(k)]) # Michael S. Branicky, Jan 28 2023
CROSSREFS
Sequence in context: A205722 A105731 A060343 * A179924 A274321 A316603
KEYWORD
nonn,easy,base
AUTHOR
David W. Wilson, Feb 25 2003
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 August 30 00:57 EDT 2024. Contains 375520 sequences. (Running on oeis4.)