OFFSET
1,1
COMMENTS
The integers are considered in increasing order.
All primes eventually appear. Least integer k which produces the n-th prime: 2, 12, 122, 13, 1223, 133, 12233, 1333, 122333, 1224, 134, 1334, 122334, 13334, 1223334, ..., . - Robert G. Wilson v, Sep 30 2009
LINKS
EXAMPLE
2 from 11 by 1! + 1!.
3 from 100 by 1! + 0! + 0!
13 from 133 by 1! + 3! + 3!
727 from 136 by 1! + 3! + 6!
45361 from 178 by 1! + 7! + 8!
155->241. 178->45361. 1223->11. 1224->29. 1333->19. 1334->37. 1336->733. 1345->151. - R. J. Mathar, Sep 17 2009
MATHEMATICA
f[n_] := Plus @@ (IntegerDigits@ n!); k = 0; lst = {}; While[k < 783, a = f@k; If[ PrimeQ@a, AppendTo[lst, a]]; k++ ]; lst (* Robert G. Wilson v, Sep 30 2009 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Parthasarathy Nambi, Sep 07 2009
EXTENSIONS
2! = 2 and 10 -> 1! + 0! = 2 prepended by R. J. Mathar, Sep 17 2009
STATUS
approved