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!)
A351662 Initial primes of four consecutive primes with consecutive gaps 10, 20, 30. 0
216421, 393301, 588673, 601687, 627481, 752023, 776257, 801187, 842521, 846427, 892159, 970573, 976117, 1036153, 1100581, 1238833, 1445341, 1713853, 1848337, 2054761, 2134519, 2217349, 2229991, 2276107, 2287861, 2299327, 2303377, 2768341, 2933083, 3091027 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
601687, 601697, 601717, and 601747 are four consecutive primes and the gaps between them are 10, 20, and 30.
MATHEMATICA
Prime[SequencePosition[Differences[Prime[Range[250000]]], {10, 20, 30}][[All, 1]]]
PROG
(Python)
from sympy import nextprime
from itertools import islice
def agen(): # generator of terms
p, q, r, s = 2, 3, 5, 7
while True:
if q-p == 10 and r-q == 20 and s-r == 30:
yield p
p, q, r, s = q, r, s, nextprime(s)
print(list(islice(agen(), 30))) # Michael S. Branicky, Feb 19 2022
CROSSREFS
Sequence in context: A205924 A203730 A273219 * A251804 A184668 A077640
KEYWORD
nonn
AUTHOR
Harvey P. Dale, Feb 19 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 March 1 12:07 EST 2024. Contains 370433 sequences. (Running on oeis4.)