login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A074258
Gaps between primes p such that 2p-1 is also prime.
1
1, 4, 12, 12, 6, 42, 18, 42, 18, 42, 12, 18, 42, 36, 24, 6, 30, 12, 60, 60, 48, 30, 24, 6, 12, 42, 30, 36, 84, 18, 48, 60, 30, 30, 12, 60, 102, 66, 42, 18, 102, 30, 30, 72, 78, 18, 30, 102, 108, 144, 18, 60, 42, 6, 42, 42, 60, 30, 156, 72, 12, 6, 60, 90, 12, 72, 60
OFFSET
1,2
LINKS
PROG
(PARI) my(lsgp=2); forprime (p=3, 3000, if (isprime(2*p-1), print1(p-lsgp, ", "); lsgp=p))
CROSSREFS
First differences of A005382.
Cf. A001223.
Sequence in context: A348419 A238581 A063608 * A253137 A120213 A005886
KEYWORD
nonn
AUTHOR
Jon Perry, Sep 20 2002
EXTENSIONS
Offset corrected and terms a(34) and beyond from Andrew Howroyd, Jan 16 2020
STATUS
approved