%I #9 Sep 08 2022 08:45:48
%S 11,31,37,53,59,71,73,97,311,313,331,337,349,353,359,367,373,379,389,
%T 397,541,547,563,577,593,701,719,733,751,757,911,937,947,953,971,977,
%U 983,991,3001,3011,3037,3049,3061,3079,3083,3109,3137,3163,3167,3191
%N Primes p such that (p reversed)-6 is also a prime.
%H Vincenzo Librandi, <a href="/A167488/b167488.txt">Table of n, a(n) for n = 1..1000</a>
%e 31 ->13-6=7; 53 ->35-6=29; 73 ->37-6=31.
%t Select[Prime[Range[3,460]],PrimeQ[FromDigits[Reverse[ IntegerDigits[ #]]]-6]&] (* _Harvey P. Dale_, Sep 13 2011 *)
%o (Magma) [p: p in PrimesInInterval(11,4000) | IsPrime(q-6) where q is Seqint(Reverse(Intseq(p)))]; // _Vincenzo Librandi_, Sep 15 2013
%K nonn,base
%O 1,1
%A _Vincenzo Librandi_, Nov 05 2009
|