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.

Showing 1-1 of 1 results.

A063645 Primes with two representations: p*q*r - 2 = u*v*w + 2 where p, q, r, u, v and w are primes (not necessarily distinct).

Original entry on oeis.org

173, 277, 607, 929, 1129, 1181, 1237, 1493, 1549, 1597, 1613, 2011, 2063, 2137, 2423, 2677, 2753, 2767, 2797, 2819, 2851, 2917, 3449, 3533, 3607, 3617, 3727, 4013, 4073, 4177, 4201, 4253, 4493, 4523, 4583, 4691, 4919, 4951, 5119, 5237, 5273, 5393, 5407, 5557
Offset: 1

Views

Author

Reinhard Zumkeller, Jul 21 2001

Keywords

Examples

			5821 is a term: 5821 = A063641(204) = 5823 - 2 = 3*3*647 - 2, 5821 = A063642(225) = 5819 + 2 = 11*23*23 + 2.
		

Crossrefs

Programs

  • Maple
    q:= p-> isprime(p) and map(numtheory[bigomega], {p-2, p+2})={3}:
    select(q, [$2..6000])[];  # Alois P. Heinz, Apr 01 2024
  • Mathematica
    q[p_] := PrimeQ[p] && Union[PrimeOmega /@ {p-2, p+2}] == {3};
    Select[Range[2, 6000], q] (* Jean-François Alcover, Jan 13 2025, after Alois P. Heinz *)
  • PARI
    { n=0; for (m=2, 10^9, p=prime(m); if (bigomega(p + 2) == 3 && bigomega(p - 2) == 3, write("b063645.txt", n++, " ", p); if (n==1000, break)) ) } \\ Harry J. Smith, Aug 27 2009
Showing 1-1 of 1 results.