OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 3169 is a term because 3169 = (97^2+97+1)/3 and (3169^2+3169+1)/3 = 3348577, and 97, 3169 and 3348577 are all prime.
MAPLE
A:= select(t -> isprime(t) and isprime((t^2+t+1)/3), [seq(i, i=1..30000, 6)]):
B:= map(t -> (t^2+t+1)/3, A):
select(t -> isprime((t^2+t+1)/3), B);
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Oct 21 2020
STATUS
approved