Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A156208
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A156208 Numbers n such that the sum of of the products of the digits and their position m in n is prime. +0
1
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; listen)
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.

PROGRAM

(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 this_sequence A073034 A126050 A163821

Adjacent sequences: A156205 A156206 A156207 this_sequence A156209 A156210 A156211

KEYWORD

base,nonn

AUTHOR

Cino Hilliard (hillcino368(AT)hotmail.com), Feb 05 2009, Feb 08 2009

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 8 08:31 EST 2009. Contains 170430 sequences.


AT&T Labs Research