A318708 Terms resulting from application of a prime sieve to the digits of the decimal expansions of the positive integers.
1, 4, 6, 8, 9, 10, 1, 1, 14, 1, 16, 1, 18, 0, 1, 4, 6, 8, 9, 0, 1, 4, 6, 8, 9, 40, 4, 4, 44, 4, 46, 4, 48, 49, 0, 1, 4, 6, 8, 9, 60, 6, 6, 64, 6, 66, 6, 68, 69, 0, 1, 4, 6, 8, 9, 80, 81, 8, 8, 84, 8, 86, 8, 88, 90, 91, 9, 9, 94, 9, 96, 9, 98, 99, 100, 10, 10, 104, 10, 106, 10, 108, 0, 1, 4
Offset: 1
Examples
n = 113 p_1 = 2, no occurrence of 2 in 113 p_2 = 3, 1 occurrence of 3 in 113, erase 3, remains 11 p_3 = 5, no occurrence of 5 in 11 p_4 = 7, no occurrence of 7 in 11 p_5 = 11, 1 occurrence of 11 in 11, no remainder number 113 disappears and is not a member of the seq. n = 114 p_1 = 2, no occurrence of 2 in 114 p_2 = 3, no occurrence of 3 in 114 p_3 = 5, no occurrence of 5 in 114 p_4 = 7, no occurrence of 7 in 114 p_5 = 11, 1 occurrence of 11 in 114, erase 11, remains 4 number 4 is a member of the seq.
Programs
-
Mathematica
upto[n_] := Block[{s = ToString /@ Range[n]}, Do[s = StringReplace[s, ToString[p] -> ""], {p, Prime@ Range@ PrimePi@ n}]; ToExpression@ DeleteCases[s, ""]]; upto[115] (* Giovanni Resta, Sep 01 2018 *)
Comments