OFFSET
1,1
EXAMPLE
4983^10+10 = 9438628041688305771192954743294050459 is prime and 4983^10-10 = 9438628041688305771192954743294050439 is prime. Thus, 4983 is a member of this sequence.
MATHEMATICA
Select[Range[22*10^5], AllTrue[#^10+{10, -10}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jan 04 2018 *)
PROG
(Python)
import sympy
from sympy import isprime
def TwoBoth(x):
..for k in range(10**8):
....if isprime(k**x+x) and isprime(k**x-x):
......print(k)
TwoBoth(10)
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Mar 20 2014
STATUS
approved