OFFSET
1,2
COMMENTS
With the exception of k = 1, all k are odd multiples of 3 with a least-significant decimal digit of 3, 5 or 9.
A178336(n) gives the values of k^3 + 2.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
1^3 + 2 = 3 = prime(2) and 3+2 = prime(3) are twin primes, so n=1 is a term.
45^3 + 2 = 91127 = prime(8811) and 91127+2 = prime(8812) are twin primes, so 45 is a term.
10893^3 + 2 = 1292535591959 = prime(48144179941) is a lower twin prime, so 10893 is a term.
MATHEMATICA
seqQ[n_] := And @@ PrimeQ[n^3 + 3 + {-1, 1}]; Select[Range[8535], seqQ] (* Amiram Eldar, Jan 11 2020*)
PROG
(Magma) [n: n in [0..9000] | IsPrime(n^3+2) and IsPrime(n^3+4)]; // Vincenzo Librandi, Nov 18 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Ulrich Krug (leuchtfeuer37(AT)gmx.de), May 25 2010
EXTENSIONS
Keyword:base removed by R. J. Mathar, Jun 27 2010
STATUS
approved