cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A322471 Base-9 deletable primes (written in base 10).

This page as a plain text file.
%I A322471 #8 Dec 10 2018 08:55:43
%S A322471 2,3,5,7,11,19,23,29,31,41,43,47,53,59,61,67,71,79,83,101,103,107,137,
%T A322471 163,167,173,179,181,191,193,199,211,223,229,233,239,241,263,269,281,
%U A322471 283,317,331,347,349,353,367,373,383,389,401,431,443,449,461,467,479,491,509,547,557,563
%N A322471 Base-9 deletable primes (written in base 10).
%C A322471 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 A322471 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.
%H A322471 Robert Price, <a href="/A322471/b322471.txt">Table of n, a(n) for n = 1..327</a>
%t A322471 b = 9; d = {};
%t A322471 p = Select[Range[2, 10000], PrimeQ[#] &];
%t A322471 For[i = 1, i <= Length[p], i++,
%t A322471 c = IntegerDigits[p[[i]], b];
%t A322471 If[Length[c] == 1, AppendTo[d, p[[i]]]; Continue[]];
%t A322471 For[j = 1, j <= Length[c], j++,
%t A322471 t = Delete[c, j];
%t A322471 If[t[[1]] == 0, Continue[]];
%t A322471 If[MemberQ[d, FromDigits[t, b]], AppendTo[d, p[[i]]]; Break[]]]];
%t A322471 d (* _Robert Price_, Dec 09 2018 *)
%Y A322471 Cf. A080608, A080603, A096235-A096246.
%K A322471 nonn,base,easy
%O A322471 1,1
%A A322471 _Robert Price_, Dec 09 2018