The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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
5, 31, 37, 41, 53, 103, 197, 263, 277, 337, 349, 353, 359, 373, 397, 401, 421, 431, 439, 547, 569, 587, 599, 857, 859, 863, 877, 883, 983, 1009, 1013, 1039, 1069, 1091, 1097, 1103, 1117, 1129, 1153, 1171, 1193, 1213, 1223, 1237, 1249, 1279, 1291, 1301, 1367, 1811, 1871, 1931, 1979, 2647, 2663 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Primes p such that A013636(p) is in A095179.
LINKS
EXAMPLE
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.
MAPLE
revdigs:= proc(n) local L, i;
L:= convert(n, base, 10);
add(L[-i]*10^(i-1), i=1..nops(L))
end proc:
P:= [seq(ithprime(i), i=1..1000)]:
P[select(i -> isprime(revdigs(P[i]*P[i+1])), [$1..999])];
MATHEMATICA
a354881[n_] := Select[Map[Prime, Range[n]], PrimeQ[FromDigits[Reverse[IntegerDigits[# NextPrime[#]]]]]&]
a354881[390] (* Hartmut F. W. Hoft, Jul 20 2022 *)
Select[Partition[Prime[Range[400]], 2, 1], PrimeQ[IntegerReverse[Times@@#]]&][[;; , 1]] (* Harvey P. Dale, Feb 10 2024 *)
CROSSREFS
Sequence in context: A352347 A172030 A042837 * A162173 A027761 A166306
KEYWORD
nonn,base
AUTHOR
J. M. Bergot and Robert Israel, Jul 13 2022
STATUS
approved

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 May 23 18:09 EDT 2024. Contains 372765 sequences. (Running on oeis4.)