cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-10 of 26 results. Next

A052353 Least prime in A031926 (lesser of 8-twins) whose distance to the next 8-twin is 6*n.

Original entry on oeis.org

389, 683, 719, 359, 1523, 2699, 401, 929, 2153, 1373, 2459, 2531, 1439, 1733, 8573, 2741, 4943, 9059, 5051, 983, 3491, 9173, 7529, 761, 1823, 1571, 3041, 5399, 1193, 2273, 491, 8171, 23549, 5189, 5813, 53189, 3221, 4349, 32789, 49823, 18749, 19001, 10979, 89, 19433
Offset: 2

Views

Author

Labos Elemer, Mar 07 2000

Keywords

Comments

The smallest distance [A052380(4)] between 8-twins is 12, while its minimal increment is 6.
a(n) = p yields a prime quadruple of [p, p+8, p+6n, p+6n+8] and difference pattern of [8, 6n-8, 8].

Examples

			a(2) = 389 specifies quadruple of [389, 397, 401, 409] with no prime between 397 and 401;
a(11) = 1373 gives quadruple of [1373, 1381, 1439, 1447] and [8, 58, 8] difference pattern with 6 primes in the central gap.
		

Crossrefs

Programs

  • Mathematica
    seq[m_] := Module[{p = Prime[Range[m]], d, i, pp, dd, j}, d = Differences[p]; i = Position[d, 8] // Flatten; pp = p[[i]]; dd = Differences[pp]/6 - 1; j = TakeWhile[FirstPosition[dd, #] & /@ Range[Max[dd]] // Flatten, ! MissingQ[#] &]; pp[[j]]]; seq[10000] (* Amiram Eldar, Mar 05 2025 *)
  • PARI
    list(len) = {my(s = vector(len), c = 0, p1 = 2, q1 = 0, q2, d); forprime(p2 = 3, , if(p2 == p1 + 8, q2 = p1; if(q1 > 0, d = (q2 - q1)/6 - 1; if(d <= len && s[d] == 0, c++; s[d] = q1; if(c == len, return(s)))); q1 = q2); p1 = p2);} \\ Amiram Eldar, Mar 05 2025

Extensions

Name and offset corrected by Amiram Eldar, Mar 05 2025

A053322 First differences of A031926.

Original entry on oeis.org

270, 30, 12, 48, 30, 12, 192, 18, 18, 24, 18, 150, 18, 54, 126, 54, 30, 180, 66, 84, 36, 12, 162, 90, 156, 24, 150, 60, 30, 30, 186, 72, 78, 54, 36, 42, 102, 36, 30, 102, 30, 168, 12, 228, 42, 132, 78, 18, 162, 408, 60, 234, 168, 192, 108, 120, 18, 210, 174, 120, 90
Offset: 1

Views

Author

Labos Elemer, Mar 06 2000

Keywords

Comments

Minimal value 12 is for n = 3, 6, 22, 43, 90, 123, 125, 135, 144, 147, 201, 255, 276, 287, 310, 338, 350. - Zak Seidov, Jun 12 2017

Crossrefs

Programs

  • Mathematica
    With[{p = Prime[Range[1000]]}, Differences[p[[Position[Differences[p], 8] // Flatten]]]] (* Amiram Eldar, Mar 10 2025 *)

A052256 Last filtering prime (A052180) of primes p such that next prime is p+8 (A031926).

Original entry on oeis.org

7, 19, 17, 13, 11, 13, 17, 13, 19, 7, 7, 13, 11, 7, 23, 11, 7, 11, 7, 11, 11, 7, 19, 37, 31, 7, 7, 17, 7, 13, 43, 23, 43, 7, 17, 37, 41, 7, 43, 41, 23, 17, 13, 11, 7, 13, 19, 11, 61, 13, 7, 19, 13, 67, 7, 31, 31, 29, 11, 7, 41, 7, 11, 37, 29, 11, 7, 13, 13, 7, 11, 61, 7, 7, 67, 29, 7
Offset: 1

Views

Author

Labos Elemer, Feb 02 2000

Keywords

Crossrefs

A357528 Decimal expansion of Sum_{j>=1} 1/A031926(j)^2.

Original entry on oeis.org

0, 0, 0, 1, 8, 3, 9, 3, 0, 8, 5, 1, 7
Offset: 0

Views

Author

Artur Jasinski, Oct 02 2022

Keywords

Examples

			0.000183930851...
		

Crossrefs

A023202 Primes p such that p + 8 is also prime.

Original entry on oeis.org

3, 5, 11, 23, 29, 53, 59, 71, 89, 101, 131, 149, 173, 191, 233, 263, 269, 359, 389, 401, 431, 449, 479, 491, 563, 569, 593, 599, 653, 683, 701, 719, 743, 761, 821, 911, 929, 983, 1013, 1031, 1061, 1109, 1163, 1193, 1223, 1229, 1283, 1289, 1319, 1373, 1439
Offset: 1

Views

Author

Keywords

Comments

All terms > 3 are congruent to 5 mod 6 (observation by Zak Seidov in SeqFan). Thus each corresponding p + 8 is congruent to 1 mod 6. - Rick L. Shepherd, Mar 25 2023

Crossrefs

Programs

A320702 Indices of primes followed by a gap (distance to next larger prime) of 8.

Original entry on oeis.org

24, 72, 77, 79, 87, 92, 94, 124, 126, 128, 132, 135, 156, 158, 166, 186, 192, 196, 220, 228, 241, 246, 248, 270, 281, 299, 304, 325, 330, 334, 338, 364, 370, 379, 386, 393, 400, 413, 417, 421, 432, 436, 454, 456, 482, 488, 507, 517, 519, 538, 589, 594, 620, 640, 661, 676, 689, 691, 712, 736, 750, 759
Offset: 1

Views

Author

M. F. Hasler, Oct 19 2018

Keywords

Comments

Indices of the primes given in A031926.

Crossrefs

Equals A000720 o A031926.
Row 4 of A174349.
Indices of 8's in A001223.
Cf. A029707, A029709, A320701, A320703, ..., A320720 (analog for gaps 2, 4, 6, 10, ..., 44), A116493 (gap 70), A116496 (gap 100), A116497 (gap 200), A116495 (gap 210).

Programs

  • Magma
    [n: n in [1..800] | NthPrime(n+1) - NthPrime(n) eq 8]; // Vincenzo Librandi, Mar 21 2019
  • Maple
    p:= 2: Res:= NULL: count:= 0:
    for n from 1 while count < 100 do
      q:= nextprime(p);
      if q-p = 8 then count:= count+1; Res:= Res, n; fi;
      p:= q;
    od:
    Res; # Robert Israel, Oct 19 2018
  • Mathematica
    Select[Range[800], Prime[#] + 8 == Prime[# + 1] &] (* Vincenzo Librandi, Mar 21 2019 *)
  • PARI
    A_vec(N=100,g=8,p=2,i=primepi(p)-1,L=List())={forprime(q=1+p,,i++; if(p+g==p=q, listput(L,i); N--||break));Vec(L)}
    

Formula

a(n) = A000720(A031926(n)) = A174349(4,n).
A320702 = { i > 0 | prime(i+1) = prime(i) + 8 } = A001223^(-1)({8}).

A049437 Primes p such that p+2 and p+8 are also primes but p+6 is not.

Original entry on oeis.org

3, 29, 59, 71, 149, 269, 431, 569, 599, 1031, 1061, 1229, 1289, 1319, 1451, 1619, 2129, 2339, 2381, 2549, 2711, 2789, 3299, 3539, 4019, 4049, 4091, 4649, 4721, 5099, 5441, 5519, 5639, 5741, 5849, 6269, 6359, 6569, 6701, 6959, 7211
Offset: 1

Views

Author

Keywords

Comments

p+4 is not prime here except for p=3.

Examples

			p=29 is the smallest prime so that p, p+2 and p+8 are consecutive primes.
		

Crossrefs

Subsequence of A001359. - R. J. Mathar, Feb 10 2013

Programs

  • Magma
    [p: p in PrimesUpTo(8000)| IsPrime(p+2) and IsPrime(p+8) and not IsPrime(p+6) ] // Vincenzo Librandi, Jan 28 2011
    
  • Maple
    select(p -> isprime(p) and isprime(p+2) and isprime(p+8) and not isprime(p+6), [3, seq(i,i=5..10000, 6)]); # Robert Israel, Nov 20 2017
  • Mathematica
    {3}~Join~Select[Partition[Prime@ Range[10^3], 3, 1], Differences@ # == {2, 6} &][[All, 1]] (* Michael De Vlieger, Nov 20 2017 *)
  • PARI
    lista(nn) = forprime(p=3, nn, if(isprime(p+2) && isprime(p+8) && !isprime(p+6), print1(p, ", "))) \\ Iain Fox, Nov 20 2017

A049438 p, p+6 and p+8 are all primes (A046138) but p+2 is not.

Original entry on oeis.org

23, 53, 131, 173, 233, 263, 563, 593, 653, 1013, 1223, 1283, 1601, 1613, 2333, 2543, 2963, 3323, 3533, 3761, 3911, 3923, 4013, 4211, 4253, 4643, 4793, 5003, 5273, 5471, 5843, 5861, 6263, 6353, 6563, 6653, 6863, 7121, 7451, 7481, 7541, 7583
Offset: 1

Views

Author

Keywords

Crossrefs

Subsequence of A031924. - R. J. Mathar, Jun 15 2013

Programs

  • Mathematica
    Select[Prime@ Range[10^3], MatchQ[Boole@ PrimeQ@ {# + 2, # + 6, # + 8}, {0, 1, 1}] &] (* Michael De Vlieger, Feb 05 2017 *)
  • PARI
    isok(p) = isprime(p) && !isprime(p+2) && isprime(p+6) && isprime(p+8); \\ Michel Marcus, Dec 13 2013

A098974 Primes p such that q-p = 24, where q is the next prime after p.

Original entry on oeis.org

1669, 2179, 4177, 4523, 4759, 5237, 6173, 6397, 6737, 7079, 7369, 7793, 8123, 8329, 9067, 11003, 11633, 11839, 12073, 12119, 13009, 13267, 16033, 16193, 16453, 16763, 16787, 17053, 17683, 17989, 18593, 18637, 19183, 19507, 20483, 22409, 22877, 23227
Offset: 1

Views

Author

Douglas Winston (douglas.winston(AT)srupc.com), Oct 23 2004

Keywords

Comments

Lower prime of a difference of 24 between consecutive primes.
23 successive numbers after prime number p are composite. - Artur Jasinski, Jan 15 2007

Crossrefs

Programs

  • Mathematica
    a = {}; Do[If[Prime[x + 1] - Prime[x] == 24, AppendTo[a, Prime[x]]], {x, 1, 10000}]; a (* Artur Jasinski, Jan 15 2007 *)

Extensions

Entry revised by N. J. A. Sloane, Feb 13 2007

A126784 Primes p such that q-p = 32, where q is the next prime after p.

Original entry on oeis.org

5591, 10799, 27701, 27851, 33647, 39047, 41081, 41687, 43721, 44417, 45989, 47459, 50789, 52457, 55259, 55547, 61781, 62351, 64817, 66239, 67307, 69959, 73907, 79907, 80567, 82307, 84089, 88037, 94169, 94961, 99191, 99929, 100559, 102611
Offset: 1

Views

Author

Douglas Winston (douglas.winston(AT)srupc.com), Feb 24 2007

Keywords

Comments

Lower prime of a difference of 32 between consecutive primes.

Crossrefs

Programs

  • PARI
    lista(nn) = {p = 2; while (p < nn, q = nextprime(p+1); if (q - p == 32, print1(p, ", ")); p = q;);} \\ Michel Marcus, Jul 17 2013
Showing 1-10 of 26 results. Next