Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A108013
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A108013 Primes p such that p+2 and p(p+2)+2 are primes. +0
1
3, 5, 149, 179, 239, 269, 419, 569, 1289, 1319, 2309, 2549, 2729, 3359, 3389, 4259, 4649, 5849, 5879, 6359, 6779, 8999, 9239, 9629, 10529, 10889, 11969, 13679, 13829, 14009, 14549, 16229, 16649, 18059, 18119, 18539, 19139, 19379, 21599, 21839 (list; graph; listen)
OFFSET

1,1

COMMENT

Except for the first 2 terms, these numbers all end in 9. Froof: Any odd prime P>5 can have one of the following forms: 10k+1,10k+3,10k+7,10k+9. 10k+1 => p(p+2)+2 ends in 5 not prime so p <> form 10k+1 10k+3 => (p+2) ends in 5 not prime so p <> form 10k+3 10k+7 => p(p+2)+2 ends in 5 not prime so p <> form 10k+7 Thus p is of the form 10k+9 as stated. Moreover, p+2 ends in 1 and p(p+2)+2 is of the form 100h+1 since (10k+9)(10k+11)+2 = 100(k^2+2k+1)+1

EXAMPLE

149*151+2 = 22501. 149,151,22501 are prime so 149 is in the table.

PROGRAM

(PARI) g(n, k) = forprime(x1=3, n, x2=x1+2; if(isprime(x2), p=x1*x2+k; if(isprime(p), print1(x1", ") ) ) )

CROSSREFS

Cf. A051779.

Sequence in context: A070743 A103993 A088269 this_sequence A087307 A038535 A090953

Adjacent sequences: A108010 A108011 A108012 this_sequence A108014 A108015 A108016

KEYWORD

easy,nonn

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), May 30 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 July 26 13:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research