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.

A085637 Numbers k such that k*prime(k) -+ 1 are twin primes.

Original entry on oeis.org

2, 30, 72, 144, 312, 336, 510, 690, 990, 1122, 1254, 1272, 1410, 2082, 2376, 2508, 2586, 2664, 2802, 3060, 3096, 3180, 3432, 3510, 3684, 4062, 4506, 5526, 5790, 6174, 7224, 8064, 8388, 9078, 9390, 9504, 10698, 10794, 10884, 10992, 11046, 11334
Offset: 1

Views

Author

Zak Seidov, Jul 11 2003

Keywords

Comments

Intersection of A086172 and A086173. See also A086174, A086175, A086176, A086177.

Examples

			k=30 is a term because 30*prime(30) +- 1 = 3390 +- 1 are twin primes.
		

Crossrefs

Programs

  • Magma
    [n: n in [1..11500] | IsPrime(n*NthPrime(n) - 1) and IsPrime(n*NthPrime(n) + 1) ]; // Vincenzo Librandi, Oct 05 2012
  • Mathematica
    Select[Range[15000], PrimeQ[ # Prime[ # ] - 1] && PrimeQ[ # Prime[ # ] + 1] &]
    Select[Range[12000],AllTrue[#*Prime[#]+{1,-1},PrimeQ]&] (* Harvey P. Dale, Mar 21 2025 *)