Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A071352
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A071352 Numbers n such that the sum of two consecutive primes prime(n+1)+prime(n) is a power of a prime, q^w, say. The w values are in A071087. +0
2
1, 2, 18, 564 (list; graph; listen)
OFFSET

1,2

EXAMPLE

n=1:p(2)+p(1)=3+2=5 n=2:p(3)+p(2)=5+3=8; n=18:p(19)+p(18)=61+67=128; n=564:p(565)+p(564)=4099+4093=8192; no more found below n=10^7.

MATHEMATICA

Do[s=Prime[n+1]+Prime[n]; If[Equal[Length[FactorInteger[s]], 1], Print[{n, Prime[n], s}]], {n, 1, 10000000}]

p = q = 2; NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; Do[q = NextPrim[p]; If[ Length[ Flatten[ Table[ #[[1]], {1}] & /@ FactorInteger[p + q]]] == 1, Print[n]]; p = q, {n, 1, 10^7}] (from Robert G. Wilson v Jan 24 2004)

CROSSREFS

Cf. A091624.

Sequence in context: A015203 A121936 A063389 this_sequence A013035 A132520 A131631

Adjacent sequences: A071349 A071350 A071351 this_sequence A071353 A071354 A071355

KEYWORD

more,nonn

AUTHOR

Labos E. (labos(AT)ana.sote.hu), May 21 2002

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 September 8 13:07 EDT 2008. Contains 143486 sequences.


AT&T Labs Research