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!)
A113451 Integers n such that prime(n+1) - prime(n) is a power. 2
1, 4, 6, 8, 12, 14, 19, 22, 24, 25, 27, 29, 31, 38, 44, 48, 50, 59, 63, 65, 70, 72, 75, 77, 78, 79, 85, 87, 88, 90, 92, 93, 94, 95, 112, 117, 122, 124, 126, 128, 131, 132, 134, 135, 136, 143, 147, 149, 151, 153, 155, 156, 158, 159, 163, 166, 169, 181, 183, 186, 192, 196 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
87 is in the sequence since prime(88) - prime(87) = 457 - 449 = 8 = 2^3.
MAPLE
egcd := proc(n) local L; L:=ifactors(n)[2]; L:=map(proc(z) z[2] end, L); igcd(op(L)) end; M:=[]: cnt:=0: for z to 1 do for k from 1 to 200 do p:=ithprime(k); q:=nextprime(p); x:=q-p; if egcd(x)>1 then cnt:=cnt+1; M:=[op(M), [cnt, k, x]] fi od od; M; map(proc(z) z[3] end, M);
MATHEMATICA
f[n_] := GCD @@ Last /@ FactorInteger[n] != 1; Select[Range[200], f[Prime[ # + 1] - Prime[ # ]] &] (* Ray Chandler, Oct 19 2006 *)
CROSSREFS
Sequence in context: A055670 A141096 A089257 * A270191 A029709 A046458
KEYWORD
easy,nonn
AUTHOR
Walter Kehowski, Jan 08 2006
EXTENSIONS
Edited by Ray Chandler, Oct 19 2006
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 19 15:11 EDT 2024. Contains 371794 sequences. (Running on oeis4.)