OFFSET
1,1
COMMENTS
All terms are primes.
Mersenne exponents p from A000043 such that p^2 + p + 1 is a prime.
Corresponding values of primes q: 3, 7, 31, 131071, 618970019642690137449562111, ...
Corresponding values of primes r: 7, 13, 31, 307, 8011, 93886411, 125742583, 8857894417063, ...
PROG
(Magma) [m: m in [1..1000] | IsPrime(2^m - 1) and IsPrime(m^2 + m + 1)]
(PARI) isok(n) = isprime(2^n-1) && isprime(n^2+n+1); \\ Michel Marcus, May 21 2019
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Jaroslav Krizek, May 19 2019
STATUS
approved