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!)
A350401 Primes p such that if q is the next prime, p*q mod (A004086(p)+A004086(q)) is prime. 1
3, 5, 7, 11, 13, 23, 29, 31, 53, 59, 71, 73, 83, 89, 101, 107, 109, 127, 137, 149, 163, 173, 181, 191, 193, 211, 223, 227, 233, 239, 257, 271, 277, 281, 283, 307, 317, 367, 373, 389, 409, 419, 431, 449, 461, 463, 467, 479, 491, 509, 521, 523, 547, 577, 587, 593, 607, 613, 631, 641, 643, 653, 659 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(6) = 23 is a member because it is prime, the next prime is 29, and 23*29 mod (32+92) = 667 mod 124 = 47 is prime.
MAPLE
revdigs:= proc(n) local L, i, m;
L:= convert(n, base, 10); m:= nops(L);
add(L[i]*10^(m-i), i=1..m)
end proc:
q:= 2: qr:= 2:
R:= NULL: count:= 0:
while count < 100 do
p:=q; pr:= qr;
q:= nextprime(p); qr:= revdigs(q); s:= p*q mod (pr+qr);
if isprime(s) then
R:= R, p; count:= count+1;
fi
od:
R;
CROSSREFS
Cf. A004086.
Sequence in context: A066651 A182583 A181741 * A154319 A080114 A088878
KEYWORD
nonn,base
AUTHOR
J. M. Bergot and Robert Israel, Dec 28 2021
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 April 24 04:14 EDT 2024. Contains 371918 sequences. (Running on oeis4.)