OFFSET
1,2
COMMENTS
After a(1), all the terms are multiples of 3.
After a(2), all the terms are congruent to 5 or 9 (mod 10).
a(n) == {9 or 15} (mod 30) for n>2. - Robert G. Wilson v, Mar 19 2017
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..2352 from Robert G. Wilson v)
EXAMPLE
a(2) = 3, {3 + 2 = 5, 3 + 4 = 7} and {3^3 + 2 = 29, 3^3 + 4 = 31} are twin prime pairs.
a(3) = 69, {69 + 2 = 71, 69 + 4 = 73} and {69^3 + 2 = 328511, 69^3 + 4 = 328513} are twin prime pairs.
MATHEMATICA
Select[Range[1000000], PrimeQ[# + 2] && PrimeQ[# + 4] && PrimeQ[#^3 + 2] && PrimeQ[#^3 + 4] &]
PROG
(PARI) for(n=1, 100000, 2; if(isprime(n+2) && isprime(n+4) && isprime(n^3+2) && isprime(n^3+4), print1(n, ", ")))
CROSSREFS
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Mar 19 2017
STATUS
approved