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 12 results. Next

A096679 A096787 indexed by A000040.

Original entry on oeis.org

8, 11, 14, 19, 20, 22, 27, 31, 32, 34, 36, 38, 43, 46, 47, 48, 52, 54, 58, 61, 63, 64, 67, 73, 75, 81, 83, 85, 86, 90, 93, 94, 95, 99, 101, 105, 109, 111, 114, 115, 117, 118, 120, 124, 125, 129, 131, 132, 133, 138, 141, 143, 144, 149, 153, 155, 156, 157, 161, 163
Offset: 1

Views

Author

Ray Chandler, Jul 10 2004

Keywords

Crossrefs

Formula

a(n) = k such that A000040(k) = A096787(n).

A060254 Primes which are the sum of two consecutive composite numbers.

Original entry on oeis.org

17, 19, 29, 31, 41, 43, 53, 67, 71, 79, 89, 97, 101, 103, 109, 113, 127, 131, 137, 139, 149, 151, 163, 173, 181, 191, 197, 199, 211, 223, 229, 233, 239, 241, 251, 257, 269, 271, 281, 283, 293, 307, 311, 317, 331, 337, 349, 353, 367, 373, 379, 389, 401, 409
Offset: 1

Views

Author

Robert G. Wilson v, Mar 22 2001

Keywords

Comments

For the smaller of the consecutive composite pair (p-+1)/2, see A096784
This sequence also contains exactly those odd primes p where neither p-1 nor p+1 is the product of exactly 2 (not necessarily distinct) primes. - Leroy Quet, Sep 09 2008
5 together with the prime numbers A060254=(5,17,19,29,31,41,43,53,..)=primes which are the sum of two consecutive nonprime numbers. - Juri-Stepan Gerasimov, Aug 30 2009
Conjecture: a(n) ~ n log n. - Charles R Greathouse IV, Apr 29 2015

Examples

			The prime 19 is an entry since it is the sum of 9=3^2 and 10=2*5.
		

Crossrefs

Programs

  • Mathematica
    2Select[ Range[210], PrimeQ[ # ] == PrimeQ[ # + 1] == False && PrimeQ[2# + 1] == True &] + 1
    Select[Total/@Partition[Select[Range[300],CompositeQ],2,1],PrimeQ] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jan 12 2019 *)
  • PARI
    is(n)=!isprime(n\2) && !isprime(n\2+1) && isprime(n) \\ Charles R Greathouse IV, Apr 29 2015

A096785 Primes of form 4k+1 which are the sum of two consecutive composite numbers.

Original entry on oeis.org

17, 29, 41, 53, 89, 97, 101, 109, 113, 137, 149, 173, 181, 197, 229, 233, 241, 257, 269, 281, 293, 317, 337, 349, 353, 373, 389, 401, 409, 433, 449, 461, 509, 521, 557, 569, 577, 593, 601, 617, 641, 653, 677, 701, 709, 761, 769, 773, 797, 809, 821, 829, 853
Offset: 1

Views

Author

Lekraj Beedassy, Jul 09 2004

Keywords

Crossrefs

Subsequence of A060254. See A096786 for values 2n. See A096675 for n values.

Programs

  • Mathematica
    Do[If[PrimeQ[2*n+1]&&Equal[Mod[s, 4], 1]&&!PrimeQ[n]&&!PrimeQ[n+1], Print[2*n+1]], {n, 1, 1000}] (* Labos Elemer *)
    2Select[ Range[450], PrimeQ[ # ] == PrimeQ[ # + 1] == PrimeQ[2# + 1, GaussianIntegers -> True] == False && PrimeQ[2# + 1] == True &] + 1 (* Robert G. Wilson v, Jul 11 2004 *)
  • PARI
    nextcomposite(k)=if(k<3,4,if(isprime(k),k+1,k));
    {m=440;n=4;while(nKlaus Brockhaus, Jul 11 2004

Formula

Equals 1 + 2*A096786.

Extensions

Corrected and extended by Klaus Brockhaus, Rick L. Shepherd and Ray Chandler, Jul 10 2004

A096784 Numbers n such that both n and n+1 are composite numbers that sum up to a prime.

Original entry on oeis.org

8, 9, 14, 15, 20, 21, 26, 33, 35, 39, 44, 48, 50, 51, 54, 56, 63, 65, 68, 69, 74, 75, 81, 86, 90, 95, 98, 99, 105, 111, 114, 116, 119, 120, 125, 128, 134, 135, 140, 141, 146, 153, 155, 158, 165, 168, 174, 176, 183, 186, 189, 194, 200, 204, 209, 215, 216, 219, 221
Offset: 1

Views

Author

Lekraj Beedassy, Jul 09 2004

Keywords

Crossrefs

See A060254 for the primes 2n+1.

Programs

  • Magma
    [n: n in [0..250]|not IsPrime(n) and not IsPrime(n+1) and IsPrime(2*n+1)] // Vincenzo Librandi, Dec 18 2010
  • Mathematica
    Select[ Range[ 225], PrimeQ[ # ] == PrimeQ[ # + 1] == False && PrimeQ[2# + 1] == True &] (* Robert G. Wilson v, Jul 11 2004 *)
  • PARI
    nextcomposite(k)=if(k<3,4,if(isprime(k),k+1,k));
    {m=230;n=4;while(nKlaus Brockhaus, Jul 11 2004
    

Formula

Equals (A060254 -1)/2.

Extensions

Corrected and extended by Klaus Brockhaus and Ray Chandler, Jul 10 2004

A096786 Numbers n such that both n and n+1 are composite numbers that sum up to a Pythagorean prime (i.e., of the form 4k+1).

Original entry on oeis.org

8, 14, 20, 26, 44, 48, 50, 54, 56, 68, 74, 86, 90, 98, 114, 116, 120, 128, 134, 140, 146, 158, 168, 174, 176, 186, 194, 200, 204, 216, 224, 230, 254, 260, 278, 284, 288, 296, 300, 308, 320, 326, 338, 350, 354, 380, 384, 386, 398, 404, 410, 414, 426, 428, 440
Offset: 1

Views

Author

Lekraj Beedassy, Jul 09 2004

Keywords

Crossrefs

Subsequence (even numbers) of A096784. See A096785 for the associated primes.

Programs

  • Mathematica
    Select[ Range[450], PrimeQ[ # ] == PrimeQ[ # + 1] == PrimeQ[2# + 1, GaussianIntegers -> True] == False && PrimeQ[2# + 1] == True &] (* Robert G. Wilson v, Jul 11 2004 *)
  • PARI
    nextcomposite(k)=if(k<3,4,if(isprime(k),k+1,k));
    {m=465;n=4;while(nKlaus Brockhaus, Jul 11 2004

Formula

Equals (A096785 - 1)/2.

Extensions

Corrected and extended by Klaus Brockhaus, Rick L. Shepherd and Ray Chandler, Jul 10 2004

A096788 Numbers m such that both m and m+1 are composite numbers whose sum is a prime of the form 4k+3.

Original entry on oeis.org

9, 15, 21, 33, 35, 39, 51, 63, 65, 69, 75, 81, 95, 99, 105, 111, 119, 125, 135, 141, 153, 155, 165, 183, 189, 209, 215, 219, 221, 231, 243, 245, 249, 261, 273, 285, 299, 303, 309, 315, 321, 323, 329, 341, 345, 363, 369, 371, 375, 393, 405, 411, 413, 429, 441
Offset: 1

Views

Author

Lekraj Beedassy, Jul 09 2004

Keywords

Comments

Odd composite numbers c such that 2*c + 1 is prime. - Alexandre Herrera, Jul 07 2023

Crossrefs

Subsequence (odd numbers) of A096784. See A096787 for the associated primes.

Programs

  • Mathematica
    Select[ Range[ 450], PrimeQ[ # ] == PrimeQ[ # + 1] == False && PrimeQ[2# + 1, GaussianIntegers -> True] == True &] (* Robert G. Wilson v, Jul 11 2004 *)
  • PARI
    nextcomposite(k)=if(k<3,4,if(isprime(k),k+1,k));
    {m=455;n=4;while(nKlaus Brockhaus, Jul 10 2004

Formula

Equals (A096787 - 1)/2.

Extensions

Corrected and extended by Klaus Brockhaus and Ray Chandler, Jul 10 2000
Incorrect comment about Gaussian primes deleted by N. J. A. Sloane, Mar 02 2011

A151740 Composites that are the sum of two consecutive composite numbers.

Original entry on oeis.org

10, 14, 22, 26, 34, 38, 46, 49, 51, 55, 58, 62, 65, 69, 74, 77, 82, 86, 91, 94, 99, 106, 111, 115, 118, 122, 125, 129, 134, 142, 146, 153, 155, 158, 161, 166, 169, 171, 175, 178, 183, 185, 187, 189, 194, 202, 206, 209, 214, 218, 221, 226, 231, 235, 237, 243, 245
Offset: 1

Views

Author

Claudio Meller, Jun 15 2009

Keywords

Comments

The even terms of this sequence are exactly twice the primes > 3. The odd terms are odd composites c for which the odd integer next to c/2 is not prime. - M. F. Hasler, Jun 16 2009
The English language can be ambiguous! What is meant here is: write down a list of the composite numbers 4,6,8,9,10,12,... Whenever the sum of two adjacent terms is composite, adjoin it to the sequence: 4+6=10, 6+8=14, 10+12=22, ... - N. J. A. Sloane, Nov 26 2019

Crossrefs

Cf. A167611 (Essentially the same, except for initial term).

Programs

  • Mathematica
    CompositeNext[n_]:=Module[{k=n+1},While[PrimeQ[k],k++ ];k]; q=6!;lst2={};Do[If[ !PrimeQ[n],c=CompositeNext[n];a2=n+c;If[ !PrimeQ[a2],AppendTo[lst2,a2]]],{n,q}];lst2 (* Vladimir Joseph Stephan Orlovsky, Jun 17 2009 *)
    Module[{c=Select[Range[300],CompositeQ],s2},s2=Total/@Partition[c,2,1];Intersection[c,s2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Nov 27 2019 *)
  • PARI
    isA151740(n)= bittest(n,0) || return(isprime(n/2) && n>6); !isprime(bitor(n\2,1)) && !isprime(n) && n>1 \\ M. F. Hasler, Jun 16 2009
    
  • Python
    from sympy import isprime, composite
    print([totest for k in range(1,92) if not isprime(totest := composite(k) + composite(k+1))]) # Karl-Heinz Hofmann, Feb 06 2024

A151741 Composite which are the sum of three consecutive composite numbers.

Original entry on oeis.org

18, 27, 36, 45, 49, 54, 63, 75, 78, 81, 85, 90, 95, 99, 102, 105, 117, 121, 126, 135, 143, 147, 150, 153, 161, 165, 168, 171, 175, 180, 185, 189, 192, 195, 203, 207, 216, 221, 225, 228, 231, 235, 243, 247, 255, 258, 261, 265, 273, 276, 279, 282, 285, 289, 297
Offset: 1

Views

Author

Claudio Meller, Jun 15 2009

Keywords

Crossrefs

Programs

  • Mathematica
    Module[{c=Select[Range[300],CompositeQ],s3},s3=Total/@Partition[c,3,1];Intersection[c,s3]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Nov 27 2019 *)
  • PARI
    c1=4;c2=6;for(c3=8,299,isprime(c3) && next;isprime(c1+c2+c3) || print1(c1+c2+c3",");c1=c2;c2=c3) \\ M. F. Hasler, Jun 16 2009

A096676 a(n) = (A096788(n)-1)/2.

Original entry on oeis.org

4, 7, 10, 16, 17, 19, 25, 31, 32, 34, 37, 40, 47, 49, 52, 55, 59, 62, 67, 70, 76, 77, 82, 91, 94, 104, 107, 109, 110, 115, 121, 122, 124, 130, 136, 142, 149, 151, 154, 157, 160, 161, 164, 170, 172, 181, 184, 185, 187, 196, 202, 205, 206, 214, 220, 226, 227, 229
Offset: 1

Views

Author

Ray Chandler, Jul 10 2004

Keywords

Comments

a(n)*4 + 3 = A096787(n).

Crossrefs

A096675 a(n) = A096786(n)/2.

Original entry on oeis.org

4, 7, 10, 13, 22, 24, 25, 27, 28, 34, 37, 43, 45, 49, 57, 58, 60, 64, 67, 70, 73, 79, 84, 87, 88, 93, 97, 100, 102, 108, 112, 115, 127, 130, 139, 142, 144, 148, 150, 154, 160, 163, 169, 175, 177, 190, 192, 193, 199, 202, 205, 207, 213, 214, 220, 232, 234, 235, 238
Offset: 1

Views

Author

Ray Chandler, Jul 10 2004

Keywords

Comments

a(n)*4 + 1 = A096785(n).

Crossrefs

Showing 1-10 of 12 results. Next