OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Fernando Neres de Oliveira, On the Solvability of the Diophantine Equation p^x + (p + 8)^y = z^2 when p > 3 and p + 8 are Primes, Annals of Pure and Applied Mathematics (2018) Vol. 18, No. 1, 9-13.
FORMULA
MATHEMATICA
Flatten[Select[{#, # + 8} &/@Prime[Range[1000]], PrimeQ[Last[#]]&]] (* Vincenzo Librandi, Nov 01 2012 *)
PROG
(Python)
from sympy import isprime, primerange
for pn in primerange(1, 300):
if isprime(pn+8):
print(pn, pn+8)
# Stefano Spezia, Dec 06 2018
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Vincenzo Librandi, Feb 08 2009
STATUS
approved