Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A105411
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A105411 Numbers p(n) such that both p(n)+2 and p(n+4)-2 are prime numbers, where p(n) is the n-th prime number (A000040(n)). +0
1
3, 17, 29, 59, 227, 269, 617, 1031, 1277, 1289, 1301, 1607, 1667, 1697, 2087, 2129, 2309, 2711, 2789, 3257, 3527, 3539, 3557, 3917, 4019, 4241, 4517, 4637, 4787, 5477, 5501, 5639, 6551, 7307, 8819, 8837, 8999, 9011, 10037, 10067, 10271, 10499, 12041 (list; graph; listen)
OFFSET

1,1

COMMENT

p(8) = 17, p(8+3) = 29, both prime.

MATHEMATICA

For[n = 1, n < 500, n++, If[PrimeQ[Prime[n] + 2], If[PrimeQ[Prime[n + 4] - 2], Print[Prime[n]]]]] - Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), Feb 07 2006

PROGRAM

(PARI) pnpk(n, m, k) = \ both are prime { local(x, l1, l2, v1, v2); for(x=1, n, v1 = prime(x)+ k; v2 = prime(x+m)+k; if(isprime(v1)&isprime(v2), \ print1(x", ") print1(v1", ") ) ) }

CROSSREFS

Adjacent sequences: A105408 A105409 A105410 this_sequence A105412 A105413 A105414

Sequence in context: A007490 A022887 A063715 this_sequence A107158 A126782 A090648

KEYWORD

nonn

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), May 02 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 May 16 23:01 EDT 2008. Contains 139884 sequences.


AT&T Labs Research