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!)
A053872 Primes arising in A053782. 3

%I #17 Oct 30 2022 18:19:59

%S 37,199,277,367,997,1049,1103,1451,1709,1777,2137,2213,2953,3041,3407,

%T 3889,3989,4091,5309,7193,7883,11113,13757,15083,16073,17093,28643,

%U 28909,30259,32203,35089,35977,40879,42157,43451,43777,48119,51949

%N Primes arising in A053782.

%H Chai Wah Wu, <a href="/A053872/b053872.txt">Table of n, a(n) for n = 1..10000</a>

%t s=0;lst={};Do[If[PrimeQ[n],NULL,s+=n;If[PrimeQ[s],AppendTo[lst,s]]],{n,2,7!}];lst (* _Vladimir Joseph Stephan Orlovsky_, Feb 01 2009 *)

%o (Python)

%o from python import isprime

%o A053872_list, n, m, s = [], 1, 4, 4

%o while len(A053872_list) < 10000:

%o if isprime(s):

%o A053872_list.append(s)

%o m += 1

%o if isprime(m):

%o m += 1

%o n += 1

%o s += m # _Chai Wah Wu_, May 13 2018

%o (PARI) lista(nn) = {my(s = 0); forcomposite(c=1, nn, s += c; if (isprime(s), print1(s, ", ")););} \\ _Michel Marcus_, May 13 2018

%Y Cf. A000040, A002808, A053782.

%K nonn

%O 1,1

%A _G. L. Honaker, Jr._, Mar 30 2000

%E More terms from _Reiner Martin_, Jul 17 2001

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 April 23 23:26 EDT 2024. Contains 371917 sequences. (Running on oeis4.)