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.

A141340 Positive integers n such that A061358(n) = #{primes p | n/2 <= p < n-1}.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 18, 24, 30, 36, 42, 48, 60, 90, 210
Offset: 1

Views

Author

Rick L. Shepherd, Jun 25 2008

Keywords

Comments

According to Brouwers et al., Deshouillers et al. showed that the maximum term of this sequence is 210. A141341 is a subsequence.
Positive integers k such that, for each prime p with k/2 <= p <= k - 2, k - p is prime. - Charles R Greathouse IV, May 28 2017

Examples

			For each prime 210/2 <= p <= 210, 210 - p is prime, and so 210 is in this sequence: 210 - 107 = 103, 210 - 109 = 101, 210 - 113 = 97, 210 - 127 = 83, 210 - 131 = 79, 210 - 137 = 73, 210 - 139 = 71, 210 - 149 = 61, 210 - 151 = 59, 210 - 157 = 53, 210 - 163 = 47, 210 - 167 = 43, 210 - 173 = 37, 210 - 179 = 31, 210 - 181 = 29, 210 - 191 = 19, 210 - 193 = 17, 210 - 197 = 13, 210 - 199 = 11. - _Charles R Greathouse IV_, May 28 2017
		

Crossrefs

Programs

  • Mathematica
    Block[{r = {}}, Do[ If[ AllTrue[i - #, PrimeQ] &@ NextPrime[i/2, Range[ PrimePi[i - 2] - PrimePi[i/2]]], AppendTo[r, i]], {i, 210}]; r] (* Mikk Heidemaa, May 29 2024 *)
  • PARI
    is(n)=forprime(p=n/2,n-2, if(!isprime(n-p),return(0))); 1 \\ Charles R Greathouse IV, May 28 2017; corrected by Michel Marcus, May 30 2024