Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A104213
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A104213 Nonprime sums of the digits of primes. +0
1
13, 17, 19, 31, 37, 53, 59, 71, 73, 79, 97, 103, 107, 109, 127, 149, 163, 167, 181, 211, 233, 239, 251, 257, 271, 277, 293, 307, 347, 349, 367, 383, 389, 419, 431, 433, 439, 457, 479, 491, 499, 503, 509, 521, 523, 541, 547, 563, 569, 587, 613, 617, 619, 631 (list; graph; listen)
OFFSET

1,1

EXAMPLE

Sum of digits of prime 13=4 not prime so 13 is listed

MATHEMATICA

Select[ Prime[ Range[115]], !PrimeQ[Plus @@ IntegerDigits[ # ]] &] (from Robert G. Wilson v Mar 16 2005)

PROGRAM

(PARI) sdprime(n) = { local(x, y); forprime(x=1, n, y=sumdigits(x); if(isprime(y), print1(y", ") ) ) } sumdigits(n) = \ The sum of the digits of n { local(x, j, s=0); x=digits(n); for(j=1, length(x), s+=x[j]; ); return(s) } digits(n) = \ The vector of the digits of n { return(eval(Vec(Str(n)))) }

CROSSREFS

Sequence in context: A099184 A098095 A059500 this_sequence A105896 A112741 A111380

Adjacent sequences: A104210 A104211 A104212 this_sequence A104214 A104215 A104216

KEYWORD

easy,nonn,base

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Mar 13 2005

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 11 12:57 EST 2009. Contains 170656 sequences.


AT&T Labs Research