A048521 Primes expressible as the sum of an integer plus its digit sum.
2, 11, 13, 17, 19, 23, 29, 37, 41, 43, 47, 59, 61, 67, 71, 73, 79, 83, 89, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 223, 227, 229, 239, 241, 251, 257, 263, 269, 271, 281, 283, 293, 307, 311, 313
Offset: 1
Examples
a(24) = prime 113 which is 106 + (1+0+6) (or 97 + (9+7)).
Links
Crossrefs
Programs
-
Haskell
a048521 n = a048521_list !! (n-1) a048521_list = map a000040 $ filter ((> 0) . a107740) [1..] -- Reinhard Zumkeller, Sep 27 2014
-
Mathematica
t={};Do[p=Prime[n];c=0;i=1;While[i
Extensions
Formula and also offset corrected by Reinhard Zumkeller, Sep 27 2014