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.

A156320 List of prime pairs of the form (p, p+8).

This page as a plain text file.
%I A156320 #16 May 18 2021 17:53:08
%S A156320 3,11,5,13,11,19,23,31,29,37,53,61,59,67,71,79,89,97,101,109,131,139,
%T A156320 149,157,173,181,191,199,233,241,263,271,269,277,359,367,389,397,401,
%U A156320 409,431,439,449,457,479,487,491,499,563,571,569,577,593,601,599,607,653,661,683,691,701
%N A156320 List of prime pairs of the form (p, p+8).
%H A156320 Vincenzo Librandi, <a href="/A156320/b156320.txt">Table of n, a(n) for n = 1..1000</a>
%H A156320 Fernando Neres de Oliveira, <a href="https://doi.org/10.22457/apam.v18n1a2">On the Solvability of the Diophantine Equation p^x + (p + 8)^y = z^2 when p > 3 and p + 8 are Primes</a>, Annals of Pure and Applied Mathematics (2018) Vol. 18, No. 1, 9-13.
%F A156320 a(2n+1) = A023202(n+1). a(2n+2) = A092402(n+1). [_R. J. Mathar_, Feb 09 2009]
%t A156320 Flatten[Select[{#, # + 8} &/@Prime[Range[1000]], PrimeQ[Last[#]]&]] (* _Vincenzo Librandi_, Nov 01 2012 *)
%o A156320 (Python)
%o A156320 from sympy import isprime, primerange
%o A156320 for pn in primerange(1,300):
%o A156320     if isprime(pn+8):
%o A156320         print(pn, pn+8)
%o A156320 # _Stefano Spezia_, Dec 06 2018
%Y A156320 Cf. A023202, A092402.
%K A156320 nonn,tabf
%O A156320 1,1
%A A156320 _Vincenzo Librandi_, Feb 08 2009