login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A104214 Numbers n such that the sum of the digits of the n-th lower twin prime is prime. 0
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; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
The 5th lower twin prime is 29. 2+9=11 a prime, so 5 is listed.
The 4th lower twin prime is 17. 1+7=8 so 4 is missing from the table.
PROG
(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: A175007 A284685 A113238 * A349523 A355616 A046657
KEYWORD
easy,nonn,base
AUTHOR
Cino Hilliard, Mar 13 2005
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 03:28 EDT 2024. Contains 371696 sequences. (Running on oeis4.)