OFFSET
1,1
LINKS
EXAMPLE
a(1) = 11 = 1*(2!) + 1*(1!) = A007623(3)_10.
a(2) = 101 = 1*(3!) + 0*(2!) + 1*(1!) = A007623(7)_10.
a(3) = 211 = 2*(3!) + 1*(2!) + 1*(1!) = A007623(15)_10.
a(4) = 311 = 3*(3!) + 1*(2!) + 1*(1!) = A007623(21)_10.
a(5) = 1021 = 1*(4!) + 0*(3!) + 2*(2!) + 1*(1!) = A007623(29)_10.
a(6) = 1201 = 1*(4!) + 2*(3!) + 0*(2!) + 1*(1!) = A007623(37)_10.
a(7) = 1301 = 1*(4!) + 3*(3!) + 0*(2!) + 1*(1!) = A007623(43)_10.
a(8) = 1321 = 1*(4!) + 3*(3!) + 2*(2!) + 1*(1!) = A007623(47)_10.
MATHEMATICA
f[n_] := Module[{k = n, m = 2, r, s = {}}, While[{k, r} = QuotientRemainder[k, m]; k != 0|| r != 0, AppendTo[s, r]; m++]; FromDigits[Reverse @ s]]; Select[Array[f, 300], PrimeQ] (* Amiram Eldar, Feb 21 2024 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Jonathan Vos Post, Sep 06 2006
EXTENSIONS
More terms from Amiram Eldar, Feb 21 2024
STATUS
approved