A329150 Increasingly ordered list without repetition of numbers k that are obtained, when, for nonnegative integers n, each nonzero digit d is replaced with prime(d).
0, 2, 3, 5, 7, 11, 13, 17, 19, 20, 22, 23, 25, 27, 30, 32, 33, 35, 37, 50, 52, 53, 55, 57, 70, 72, 73, 75, 77, 110, 112, 113, 115, 117, 130, 132, 133, 135, 137, 170, 172, 173, 175, 177, 190, 192, 193, 195, 197, 200, 202, 203, 205, 207, 211, 213, 217, 219, 220
Offset: 1
Examples
Prime(1) = 2, prime(5) = 11, so A329147(15) = 211 and 211 is a term.
Links
- Michel Marcus, Table of n, a(n) for n = 1..5365
Programs
-
PARI
f(n) = if (n, fromdigits(concat(apply(d -> if (d, digits(prime(d)), [0]), digits(n)))), 0); \\ A329147 lista(nn) = my(list = List(), m); for (n=0, nn, m = f(n); if (m <= nn, listput(list, m));); Set(list); \\ Michel Marcus, Mar 26 2023
Comments