OFFSET
1,2
COMMENTS
Conjecture: the sequence is infinite.
EXAMPLE
0 is in the sequence since (0^i)+7 = 7 is prime for i>0.
3981186 is in the sequence because the following seven numbers are primes: 3981186+7, 3981186^2+7, ..., 3981186^7+7.
PROG
(Java)
import java.math.*;
public class A234798 {
public static void main (String[] args) {
BigInteger c7 = BigInteger.valueOf(7);
for (long i=0; ; i+=2) {
if (!BigInteger.valueOf(i+7).isProbablePrime(80))
continue;
BigInteger bi = BigInteger.valueOf(i), b=bi;
long k;
for (k=1; k<7; ++k) {
b = b.multiply(bi);
if (!b.add(c7).isProbablePrime(80)) break;
}
if (k==7) System.out.printf("%d, ", i);
}
}
}
CROSSREFS
KEYWORD
nonn,hard
AUTHOR
Alex Ratushnyak, Dec 30 2013
STATUS
approved