|
|
A338566
|
|
Primes p such that (p*q) mod r is prime, where q and r are the next primes after p.
|
|
3
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
a(8) > 40000000 if it exists.
|
|
LINKS
|
|
|
EXAMPLE
|
a(3)=19 is in the sequence because it is prime, the next two primes are 23 and 29, and (19*23) mod 29 = 2, which is prime.
|
|
MAPLE
|
R:= NULL: q:= 2: r:= 3:
count:= 0:
for i from 1 to 10000 do
p:= q; q:= r; r:= nextprime(r);
if isprime(p*q mod r) then count:= count+1; R:= R, p fi
od:
R;
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|