|
| |
|
|
A156208
|
|
Numbers n such that the sum of of the products of the digits and their position m in n is prime.
|
|
0
| |
|
|
2, 3, 5, 7, 3, 5, 7, 11, 13, 17, 19, 2, 3, 5, 7, 11, 13, 17, 19, 5, 7, 11, 13, 17, 19, 23, 7, 11, 13, 17, 19, 23, 11, 13, 17, 19, 23, 7, 13, 19, 3, 5, 11, 17, 23, 29, 7, 13, 19, 31, 11, 17, 23, 29, 13, 19, 31, 37, 17, 23, 29, 41, 19, 31, 37, 43, 2, 5, 11, 17, 23, 29, 7, 13, 19, 31, 11
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,1
|
|
|
FORMULA
| Given a number n with digits d1d2d3...dm, a(n) = d1*1+d2*2+d3*3+...+dm*m.
If a(n) is prime, list it.
|
|
|
EXAMPLE
| For n=19 we have 1*1 + 2*9 = 19 prime and the sequence.
|
|
|
PROG
| (PARI) g1(n) = for(j=1, n, if(isprime(g(j)), print1(g(j)", ")))
g(n) = v=Vec((Str(n))); sum(x=1, length(v), x*eval(v[x]))
|
|
|
CROSSREFS
| Sequence in context: A143950 A108534 A039706 * A073034 A126050 A163821
Adjacent sequences: A156205 A156206 A156207 * A156209 A156210 A156211
|
|
|
KEYWORD
| base,nonn
|
|
|
AUTHOR
| Cino Hilliard (hillcino368(AT)hotmail.com), Feb 05 2009, Feb 08 2009
|
| |
|
|