Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A104214
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A104214 Numbers n such that the sum of the digits of the n-th lower twin prime is prime. +0
1
1, 2, 3, 5, 6, 9, 11, 13, 14, 15, 16, 18, 19, 20, 24, 27, 29, 31, 32, 33, 35, 36, 37, 40, 43, 45, 48, 52, 54, 55, 56, 57, 58, 60, 62, 63, 64, 65, 69, 71, 74, 76, 77, 80, 82, 84, 85, 86, 87, 88, 91, 94, 97, 98, 99, 101, 103, 104, 106, 109, 111, 112, 115, 116, 117, 118, 121 (list; graph; listen)
OFFSET

1,2

EXAMPLE

The 5-th lower twin prime is 29. 2+9=11 a prime, so 5 is listed.

The 4-th lower twin prime is 17. 1+7=8 so 4 is missing from the table.

PROGRAM

(PARI) sdtwprime(n) = { local(x, y); for(x=1, n, y=sumdigits(twinl(x)); if(isprime(y), print1(x", ") ) ) } 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: A026461 A026168 A113238 this_sequence A046657 A102825 A070991

Adjacent sequences: A104211 A104212 A104213 this_sequence A104215 A104216 A104217

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 5 23:38 EST 2009. Contains 170428 sequences.


AT&T Labs Research