%I #32 Jun 07 2021 10:00:20
%S 0,0,0,0,0,-18,-54,-72,-9,-63,18,-36,27,9,-27,18,-36,45,-9,54,36,-18,
%T 45,-9,18,0,-198,-594,-792,-198,-594,0,-594,-792,-792,0,-594,-198,
%U -594,-198,-792,0,0,-198,-594,-792,99,-99,-495
%N n-th prime minus its reversal.
%C a(n) = 0 for n in A075807. - _Michel Marcus_, Sep 27 2017
%C All terms are divisible by 9. - _Zak Seidov_, Jun 05 2021
%H Reinhard Zumkeller, <a href="/A068396/b068396.txt">Table of n, a(n) for n = 1..10000</a>
%F a(n) = A000040(n) - A004087(n).
%F a(n) = A056965(A000040(n)). - _Michel Marcus_, Sep 27 2017
%e a(10) = 29 - 92 = -63;
%e a(20) = 71 - 17 = 54.
%t #-IntegerReverse[#]& /@ Prime[Range[50]] (* _Harvey P. Dale_, Dec 20 2012 *)
%o (Haskell)
%o a068396 n = p - a004086 p where p = a000040 n
%o -- _Reinhard Zumkeller_, Feb 04 2014
%o (PARI) a(n) = prime(n) - fromdigits(Vecrev(digits(prime(n)))); \\ _Michel Marcus_, Sep 27 2017
%o (Python)
%o from sympy import prime
%o def a(n): pn = prime(n); return pn - int(str(pn)[::-1])
%o print([a(n) for n in range(1, 50)]) # _Michael S. Branicky_, Jun 05 2021
%Y Cf. A000040, A004086, A056965, A061227, A075807.
%K sign,base,nice,look
%O 1,6
%A _Reinhard Zumkeller_, Mar 08 2002