OFFSET
1,1
LINKS
Zak Seidov, Table of n, a, b, c for n=1..1000
Zak Seidov, Table of n, a, b, c for n=1..1000
EXAMPLE
a(1) = 58831 because {58789, 58831, 58889} is the first set of 3 consecutive primes a, b, c with c-a=100.
a(2) = 286927 because {286873, 286927, 286973} is the second set of 3 consecutive primes a, b, c with c-a=100.
a(1000) = 23090087 because {23090059, 23090087, 23090159} is the 1000th set of 3 consecutive primes a, b, c with c-a=100.
MATHEMATICA
s = {}; a = 2; b = 3; c = 5; Do[If[c - a == 100, AppendTo[s, b]; Print[{a, b, c}]]; a = b; b = c; c = NextPrime[c], {10^5}]; s
Select[Partition[Prime[Range[151000]], 3, 1], #[[3]]-#[[1]]==100&][[;; , 2]] (* Harvey P. Dale, Jul 22 2024 *)
PROG
(PARI) p=2; q=3; forprime(r=5, 1e6, if(r-p==100, print1(q", ")); p=q; q=r) \\ Charles R Greathouse IV, Nov 14 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 08 2012
STATUS
approved