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!)
A322472 Primes that are not base-9 deletable primes (written in base 10). 1

%I #7 Dec 10 2018 02:41:33

%S 13,17,37,73,89,97,109,113,127,131,139,149,151,157,197,227,251,257,

%T 271,277,293,307,311,313,337,359,379,397,409,419,421,433,439,457,463,

%U 487,499,503,521,523,541,569,577,587,599,601,613,617,619,631,653,661,683,733,739,743,757,761

%N Primes that are not base-9 deletable primes (written in base 10).

%C A prime p is a base-b deletable prime if when written in base b it has the property that removing some digit leaves either the empty string or another deletable prime.

%C Deleting a digit cannot leave any leading zeros in the new string. For example, deleting the 2 in 2003 to obtain 003 is not allowed.

%C Complement of all primes and A322471.

%H Robert Price, <a href="/A322472/b322472.txt">Table of n, a(n) for n = 1..889</a>

%t b = 9; d = {};

%t p = Select[Range[2, 10000], PrimeQ[#] &];

%t For[i = 1, i <= Length[p], i++,

%t c = IntegerDigits[p[[i]], b];

%t If[Length[c] == 1, AppendTo[d, p[[i]]]; Continue[]];

%t For[j = 1, j <= Length[c], j++,

%t t = Delete[c, j];

%t If[t[[1]] == 0, Continue[]];

%t If[MemberQ[d, FromDigits[t, b]], AppendTo[d, p[[i]]]; Break[]]]]; Complement[Table[Prime[n], {n, PrimePi[Last[d]]}], d] (* _Robert Price_, Dec 09 2018 *)

%Y Cf. A080608, A080603, A096235-A096246, A321657.

%K nonn,base,easy

%O 1,1

%A _Robert Price_, Dec 09 2018

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 31 13:12 EDT 2024. Contains 375567 sequences. (Running on oeis4.)