login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A354881 Primes p such that, if q is the next prime, the digit reversal of p*q is prime. 1

%I #38 Feb 10 2024 14:09:04

%S 5,31,37,41,53,103,197,263,277,337,349,353,359,373,397,401,421,431,

%T 439,547,569,587,599,857,859,863,877,883,983,1009,1013,1039,1069,1091,

%U 1097,1103,1117,1129,1153,1171,1193,1213,1223,1237,1249,1279,1291,1301,1367,1811,1871,1931,1979,2647,2663

%N Primes p such that, if q is the next prime, the digit reversal of p*q is prime.

%C Primes p such that A013636(p) is in A095179.

%H Robert Israel, <a href="/A354881/b354881.txt">Table of n, a(n) for n = 1..10000</a>

%e a(3) = 37 is a term because 37 is prime, the next prime is 41, 37*41 = 1517 and its digit reversal 7151 is prime.

%p revdigs:= proc(n) local L,i;

%p L:= convert(n,base,10);

%p add(L[-i]*10^(i-1),i=1..nops(L))

%p end proc:

%p P:= [seq(ithprime(i),i=1..1000)]:

%p P[select(i -> isprime(revdigs(P[i]*P[i+1])), [$1..999])];

%t a354881[n_] := Select[Map[Prime, Range[n]], PrimeQ[FromDigits[Reverse[IntegerDigits[# NextPrime[#]]]]]&]

%t a354881[390] (* _Hartmut F. W. Hoft_, Jul 20 2022 *)

%t Select[Partition[Prime[Range[400]],2,1],PrimeQ[IntegerReverse[Times@@#]]&][[;;,1]] (* _Harvey P. Dale_, Feb 10 2024 *)

%Y Cf. A013636, A004086, A095179.

%K nonn,base

%O 1,1

%A _J. M. Bergot_ and _Robert Israel_, Jul 13 2022

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 30 03:24 EDT 2024. Contains 375523 sequences. (Running on oeis4.)