login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A303214 Prime numbers whose average with the previous prime is not divisible by 2 or 3. 1
3, 211, 223, 479, 521, 631, 673, 809, 1009, 1213, 1249, 1319, 1471, 1511, 1523, 1543, 1693, 1721, 1801, 1823, 1901, 2081, 2111, 2203, 2309, 2411, 2459, 2591, 2633, 2789, 2939, 3061, 3079, 3181, 3203, 3271, 3343, 3359, 3511, 3571, 3671, 3943, 4001, 4091, 4111 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

Very similar to A031931.

3 and all prime(k+1) such that A001223(k) is divisible by 12. - Robert Israel, Jul 04 2018

LINKS

Robert Israel, Table of n, a(n) for n = 1..10000

FORMULA

2 NOT(|) (p+previous_prime(p))/2 AND 3 NOT(|) (p+previous_prime(p))/2

EXAMPLE

p = 223 => (p + previous_prime(p))/2 = (223 +211)/2 = 7*31;

p =  53 => (p + previous_prime(p))/2 =  (53 + 51)/2 = 52 (divisible by 2).

MAPLE

count:= 1: Res:= 3:

p:= 3:

while count < 100 do

  q:= p; p:= nextprime(p);

  v:= (q+p)/2;

  if igcd(v, 6)=1 then

    count:= count+1;

    Res:= Res, p;

  fi

od:

Res; # Robert Israel, Jul 04 2018

PROG

(PARI) ok(n)={my(t=n+precprime(n-1)); n > 2 && isprime(n) && t%4 && t%3} \\ Andrew Howroyd, Jul 02 2018

CROSSREFS

Cf. A001223, A031931.

Sequence in context: A157390 A251864 A063407 * A258110 A072196 A038785

Adjacent sequences:  A303211 A303212 A303213 * A303215 A303216 A303217

KEYWORD

nonn

AUTHOR

Olivier Bélot, Apr 19 2018

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 18 02:23 EDT 2019. Contains 328135 sequences. (Running on oeis4.)