OFFSET
1,4
COMMENTS
9 divides each term.
EXAMPLE
(17, 19) is a pair of twin primes. The absolute value of 17 - 71 is in the sequence.
MATHEMATICA
a={}; For[n=1, n<268, n++, If[Prime[n+1]-Prime[n]==2, AppendTo[a, Abs[Prime[n] -FromDigits[Reverse[IntegerDigits[Prime[n]]]]]]]]; a
PROG
(PARI) revdiff(n) = { forprime(x=1, n, if(isprime(x+2), a=vector(x); x1=x; z=0; ln=length(Str(x1)); for(y=1, ln, a[y] = x1%10; x1=floor(x1/10); ); for(y=1, ln, z += a[y]*10^(ln-y); ); print1(abs(z-x)" "); ) ) }
CROSSREFS
KEYWORD
base,nonn,less
AUTHOR
Cino Hilliard, Nov 09 2003
EXTENSIONS
Edited by Stefan Steinerberger, Jun 12 2007
STATUS
approved