OFFSET
1,1
EXAMPLE
29 - 2*9 = 11 (prime) and 29 + 2*9 = 47 (prime) so 29 is a member of this sequence.
743 - 7*4*3 = 659 (prime) and 743 + 7*4*3 = 827 (prime) so 743 is a member of this sequence.
PROG
(Python)
from sympy import isprime
def DP(n):
..p = 1
..for i in str(n):
....p *= int(i)
..return p
{print(n, end=', ') for n in range(5000) if DP(n) and isprime(n+DP(n)) and isprime(n-DP(n))}
## Simplified by Derek Orr, Apr 05 2015
(PARI) for(n=1, 5000, d=digits(n); p=prod(i=1, #d, d[i]); if(p&&isprime(n+p)&&isprime(n-p), print1(n, ", "))) \\ Derek Orr, Apr 05 2015
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Derek Orr, Oct 04 2013
EXTENSIONS
More terms from Derek Orr, Apr 05 2015
STATUS
approved