|
|
A129191
|
|
Balanced primes p of the form (r+q+s-1)/2, where r, q, s are consecutive primes.
|
|
3
|
|
|
593, 1907, 4409, 6323, 15313, 17483, 19577, 25673, 26693, 29269, 34673, 38867, 46889, 54773, 64013, 67169, 68483, 74567, 81749, 85049, 95273, 96431, 110813, 111863, 127643, 132929, 134213, 134639, 135089, 140351, 156241, 157253, 160403
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
The primes q arising here are in A129190.
q need not be a balanced prime, see however A129242.
|
|
LINKS
|
|
|
EXAMPLE
|
1907 = (1259+1277+1279-1)/2 is prime and 1259, 1277, 1279 are consecutive primes. 1907 = A006562(24) is a balanced prime, it has distance 6 to the preceding prime 1901 and to the next prime 1913. Hence 1907 is a term.
|
|
MAPLE
|
p:= 2: q:= 3: r:= 5:
Res:= NULL: count:= 0:
while count < 100 do
p:= q; q:= r; r:= nextprime(r);
s:= (p+q+r-1)/2;
if isprime(s) and nextprime(s) + prevprime(s) = 2*s then
count:= count+1; Res:= Res, s;
fi
od:
|
|
PROG
|
(Magma) [ p: q in PrimesInInterval(3, 110000) | IsPrime(p) and PreviousPrime(p)+NextPrime(p) eq 2*p where p is (PreviousPrime(q)+q+NextPrime(q)-1) div 2];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|