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!)
A071352 Numbers n such that the sum of two consecutive primes prime(n+1) + prime(n) is a prime power, say q^w. The w values are in A071087. 2
1, 2, 18, 564, 1462626667154509638735 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
For n>1, a(n) = A007053(A071087(n)-1). - Max Alekseyev, Jul 27 2009
EXAMPLE
n=1: p(2)+p(1) = 3+2 = 5^1
n=2: p(3)+p(2) = 5+3 = 2^3
n=18: p(19)+p(18) = 61+67 = 2^7
n=564: p(565)+p(564) = 4099+4093 = 2^13
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}] (* Robert G. Wilson v, Jan 24 2004 *)
CROSSREFS
Sequence in context: A063389 A188202 A324308 * A258384 A296376 A013035
KEYWORD
nonn,more,hard
AUTHOR
Labos Elemer, May 21 2002
EXTENSIONS
a(5) added by Max Alekseyev, Feb 10 2011
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 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)