cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A164333 Primes prime(k) such that all integers in the interval [(prime(k-1)+1)/2, (prime(k)-1)/2] are composite numbers.

This page as a plain text file.
%I A164333 #30 Jun 01 2023 22:32:32
%S A164333 13,19,31,43,53,61,71,73,101,103,109,113,131,139,151,157,173,181,191,
%T A164333 193,199,229,233,239,241,251,269,271,283,293,311,313,349,353,373,379,
%U A164333 409,419,421,433,439,443,463,491,499,509,523,571,577,593,599,601,607,613,619,643
%N A164333 Primes prime(k) such that all integers in the interval [(prime(k-1)+1)/2, (prime(k)-1)/2] are composite numbers.
%C A164333 Let p_k be the k-th prime. A prime p is in the sequence iff the interval of the form (2p_k, 2p_(k+1)), containing p, also contains a prime less than p. The sequence is connected with the following classification of primes: the first two primes 2,3 form a separate set of primes; let p >= 5 be in the interval (2p_k, 2p_(k+1)), then 1) if in this interval there are only primes greater than p, then p is called a right prime; 2) if in this interval there are only primes less than p, then p is called a left prime; 3) if in this interval there are primes both greater and less than p, then p is called a central prime; 4) if this interval does not contain other primes, then p is called an isolated prime. In particular, the right primes form sequence A166307, and all Ramanujan primes (A104272) greater than 2 are either right or central primes; the left primes form sequence A182365, and all Labos primes (A080359) greater than 3 are either left or central primes; the central primes form A166252 and the isolated primes form A166251. [_Vladimir Shevelev_, Oct 10 2009] [Sequence reference updated by _Peter Munn_, Jun 01 2023]
%C A164333 Disjoint union of A166252 and A182365. - _Peter Munn_, Jun 01 2023 [an edited version of a contribution by _Vladimir Shevelev_ in 2009]
%H A164333 V. Shevelev, <a href="http://arXiv.org/abs/0908.2319">On critical small intervals containing primes</a>, arXiv:0908.2319 [math.NT], 2009.
%H A164333 V. Shevelev, <a href="https://cs.uwaterloo.ca/journals/JIS/VOL15/Shevelev/shevelev19.html">Ramanujan and Labos Primes, Their Generalizations, and Classifications of Primes</a>, J. Int. Seq. 15 (2012) # 12.5.4
%H A164333 J. Sondow, J. W. Nicholson, and T. D. Noe, <a href="http://arxiv.org/abs/1105.2249"> Ramanujan Primes: Bounds, Runs, Twins, and Gaps</a>, arXiv:1105.2249 [math.NT], 2011; J. Integer Seq. 14 (2011) Article 11.6.2.
%F A164333 {A080359} union {A164294} = {this sequence} union {2,3}. - _Vladimir Shevelev_, Oct 29 2011
%F A164333 A164368(2)<a(1) < A164368(3)<a(2) < A164368(4)<a(3)<... [_Vladimir Shevelev_, Oct 10 2009]
%e A164333 Let p=53. We see that 2*23<53<2*29. Since the interval (46, 58) contains prime 47<53 and does not contain any prime more than 53, then, by the considered classification 53 is left prime and it is in the sequence. [_Vladimir Shevelev_, Oct 10 2009]
%p A164333 isA164333 := proc(n)
%p A164333         local i ;
%p A164333         if isprime(n) and n > 3 then
%p A164333                 for i from (prevprime(n)+1)/2 to (n-1)/2 do
%p A164333                         if isprime(i) then
%p A164333                                 return false;
%p A164333                         end if;
%p A164333                 end do;
%p A164333                 return true;
%p A164333         else
%p A164333                 false;
%p A164333         end if;
%p A164333 end proc:
%p A164333 for i from 2 to 700 do
%p A164333         if isA164333(i) then
%p A164333                 printf("%d,",i);
%p A164333         end if;
%p A164333 end do: # _R. J. Mathar_, Oct 29 2011
%t A164333 kmax = 200; Select[Table[{(Prime[k - 1] + 1)/2, (Prime[k] - 1)/2}, {k, 3, kmax}], AllTrue[Range[#[[1]], #[[2]]], CompositeQ]&][[All, 2]]*2 + 1 (* _Jean-François Alcover_, Nov 14 2017 *)
%Y A164333 Cf. A080359, A104272, A164288, A164294, A164332, A001262, A001567, A062568, A141232.
%Y A164333 Cf. A164368, A164554, A166251, A166252. [_Vladimir Shevelev_, Oct 10 2009]
%Y A164333 Cf. A166307, A182365.
%K A164333 nonn
%O A164333 1,1
%A A164333 _Vladimir Shevelev_, Aug 13 2009
%E A164333 Definition rephrased by _R. J. Mathar_, Oct 02 2009