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-2 of 2 results.

A213734 Primes in A213650.

Original entry on oeis.org

3, 7, 59, 137, 277, 313, 499, 563, 619, 719, 787, 797, 919, 937, 971, 1013, 1217, 1283, 1373, 1409, 1439, 1451, 1621, 1747, 1789, 2207, 2237, 2267, 2393, 2417, 2441, 2591, 2707, 2797, 2801, 2939, 2999, 3251, 3529, 3769, 3847, 4201, 4441, 4447, 4597, 4643, 4721
Offset: 1

Views

Author

Michel Lagneau, Jun 19 2012

Keywords

Comments

Primes p such that the sum of the first p primes is semiprime.

Examples

			7 is in the sequence because the sum of the first 7 primes is 2 + 3 + 5 + 7 + 11 + 13 + 17 = 58 = 2*29, which is semiprime.
		

Crossrefs

Cf. A213650.

Programs

  • Maple
    with(numtheory): for n from 1 to 10000 do:s:=sum(‘ithprime(k)’, ’k’=1..n):if bigomega(s)=2 and type(n,prime)=true then printf(`%d, `, n):else fi:od:
  • Mathematica
    Select[Flatten[Position[If[PrimeOmega[#]==2,1,0]&/@Accumulate[ Prime[ Range[ 5000]]],1]],PrimeQ] (* Harvey P. Dale, Jan 27 2022 *)
  • PARI
    isok(n) = isprime(n) && bigomega(vecsum(primes(n))) == 2; \\ Michel Marcus, Sep 18 2017

A213741 Numbers n such that the sum of the first n primes is divisible by exactly 3 prime powers (not including 1).

Original entry on oeis.org

5, 13, 20, 23, 24, 35, 39, 41, 42, 43, 47, 50, 56, 61, 62, 63, 67, 68, 69, 70, 73, 76, 78, 81, 86, 90, 98, 112, 123, 126, 128, 134, 143, 145, 147, 160, 165, 166, 172, 176, 180, 182, 186, 189, 191, 193, 196, 197, 200, 215, 220, 222, 223, 225, 227, 229, 238
Offset: 1

Views

Author

Jonathan Vos Post, Jun 19 2012

Keywords

Comments

This is to "triprimes" or "3-almost primes" A014612 as A213650 is to semiprimes A001358.

Examples

			a(1) = 5 because the sum of first 5 primes is 28 = 2^2 * 7 which has exactly three prime power factors (not including 1).
a(2) = 13 because the sum of first 13 primes is 238  =  2 * 7 * 17  which has exactly three prime power factors (not including 1).
a(3) = 20 because the sum of first 20 primes is 639 = 3^2 * 71.
		

Crossrefs

Programs

  • Mathematica
    ps = 0; t = {}; Do[ps = ps + Prime[n]; If[Total[Transpose[FactorInteger[ps]][[2]]] == 3, AppendTo[t, n]], {n, 300}]; t (* T. D. Noe, Jun 27 2012 *)
  • PARI
    list(lim)=my(v=List(),k,s); forprime(p=2,prime(lim\1), k++; if(bigomega(s+=p)==3, listput(v,k))); Vec(v) \\ Charles R Greathouse IV, Feb 05 2017

Formula

{n such that A007504(n) is included in A014612.}
Showing 1-2 of 2 results.