The OEIS is supported by the many generous donors to the OEIS Foundation.


(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A080603 Primes such that deleting some digit yields a prime. 38


%S 13,17,23,29,31,37,43,47,53,59,67,71,73,79,83,97,101,103,107,109,113,

%T 127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,

%U 223,229,233,239,241,263,269,271,283,293,307,311,313,317,331,337,347,353,359,367

%N Primes such that deleting some digit yields a prime.

%C Leading zeros are allowed in the number that appears after the digit is deleted, as in A080608. - _Michael S. Branicky_, Jan 28 2023

%H Michael S. Branicky, <a href="/A080603/b080603.txt">Table of n, a(n) for n = 1..10000</a>

%o (Python)

%o from sympy import isprime

%o def ok(n):

%o if n < 10 or not isprime(n): return False

%o s = str(n)

%o si = (s[:i]+s[i+1:] for i in range(len(s)))

%o return any(isprime(int(t)) for t in si)

%o print([k for k in range(368) if ok(k)]) # _Michael S. Branicky_, Jan 28 2023

%Y Cf. A080608, A096235-A096246.

%K nonn,easy,base,changed

%O 1,1

%A _David W. Wilson_, Feb 25 2003

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 January 31 18:02 EST 2023. Contains 359980 sequences. (Running on oeis4.)