OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..2000
EXAMPLE
The six consecutive primes starting with a(3) = 634577 are 634577, 634597, 634603, 634609, 634643, 634649, which are congruent to 6, 5, 4, 3, 2, 1 respectively (mod 7).
MAPLE
P:= [0$6]: P7:= [0$6]: E:= [seq(i, i=6..1, -1)];
R:= NULL: count:= 0: p:= 0:
while count < 10 do
p:= nextprime(p);
P:= [op(P[2..6]), p];;
P7:= [op(P7[2..6]), p mod 7];
if P7 = E then count:= count+1; R:= R, P[1]; fi
od:
R;
MATHEMATICA
Prime/@SequencePosition[Mod[Prime[Range[610000]], 7], {6, 5, 4, 3, 2, 1}][[;; , 1]] (* Harvey P. Dale, Sep 20 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov and Robert Israel, Aug 31 2023
STATUS
approved